I think it might be useful to add a maven assembly descriptor which builds such a client-only package.
The native client patch that I have submitted <https://reviews.apache.org/r/23179/diff/#index_header>, builds a separate tarball which only includes the necessary files required to use the native client library. Jerry, mind creating a JIRA and submitting a patch for the Java client? On Wed, Jul 16, 2014 at 8:14 PM, Jerry He <[email protected]> wrote: > Hi, Nick > > I was just looking into what is being done for Hadoop over there. > If I build hadoop at the top level, I see there is a > hadoop-client-2.2.0.tar.gz created in hadoop-client/target. > It looks like something of a client tarball that packages the client jars > with dependencies ... > > [bdvm102 target]$ ls > antrun dist-maketar.sh > hadoop-client-2.2.0-javadoc.jar javadoc-bundle-options test-dir > archive-tmp hadoop-client-2.2.0 hadoop-client-2.2.0.tar.gz > maven-archiver > dist-copynativelibs.sh hadoop-client-2.2.0.jar > hadoop-client-2.2.0-tests.jar test > > $tar tzf hadoop-client-2.2.0.tar.gz > hadoop-client-2.2.0/ > hadoop-client-2.2.0/share/ > hadoop-client-2.2.0/share/hadoop/ > hadoop-client-2.2.0/share/hadoop/client/ > hadoop-client-2.2.0/share/hadoop/client/hadoop-client-2.2.0-tests.jar > hadoop-client-2.2.0/share/hadoop/client/lib/ > hadoop-client-2.2.0/share/hadoop/client/lib/hadoop-auth-2.2.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/hadoop-yarn-common-2.2.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/zookeeper-3.4.5.jar > hadoop-client-2.2.0/share/hadoop/client/lib/log4j-1.2.17.jar > hadoop-client-2.2.0/share/hadoop/client/lib/commons-cli-1.2.jar > hadoop-client-2.2.0/share/hadoop/client/lib/hadoop-annotations-2.2.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/xmlenc-0.52.jar > hadoop-client-2.2.0/share/hadoop/client/lib/commons-codec-1.4.jar > hadoop-client-2.2.0/share/hadoop/client/lib/commons-lang-2.5.jar > hadoop-client-2.2.0/share/hadoop/client/lib/commons-logging-1.1.1.jar > hadoop-client-2.2.0/share/hadoop/client/lib/jsr305-1.3.9.jar > hadoop-client-2.2.0/share/hadoop/client/lib/slf4j-log4j12-1.7.5.jar > > hadoop-client-2.2.0/share/hadoop/client/lib/hadoop-mapreduce-client-jobclient-2.2.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/hadoop-common-2.2.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/snappy-java-1.0.4.1.jar > hadoop-client-2.2.0/share/hadoop/client/lib/hadoop-yarn-client-2.2.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/protobuf-java-2.5.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/commons-compress-1.4.1.jar > hadoop-client-2.2.0/share/hadoop/client/lib/commons-configuration-1.6.jar > hadoop-client-2.2.0/share/hadoop/client/lib/commons-math-2.2.jar > hadoop-client-2.2.0/share/hadoop/client/lib/commons-io-2.1.jar > > hadoop-client-2.2.0/share/hadoop/client/lib/hadoop-yarn-server-common-2.2.0.jar > > hadoop-client-2.2.0/share/hadoop/client/lib/hadoop-mapreduce-client-common-2.2.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/commons-collections-3.2.1.jar > > hadoop-client-2.2.0/share/hadoop/client/lib/hadoop-mapreduce-client-core-2.2.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/jackson-core-asl-1.8.8.jar > hadoop-client-2.2.0/share/hadoop/client/lib/xz-1.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/hadoop-hdfs-2.2.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/commons-beanutils-1.8.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/hadoop-yarn-api-2.2.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/paranamer-2.3.jar > hadoop-client-2.2.0/share/hadoop/client/lib/commons-net-3.1.jar > hadoop-client-2.2.0/share/hadoop/client/lib/slf4j-api-1.7.5.jar > hadoop-client-2.2.0/share/hadoop/client/lib/avro-1.7.4.jar > > hadoop-client-2.2.0/share/hadoop/client/lib/hadoop-mapreduce-client-shuffle-2.2.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/commons-digester-1.8.jar > hadoop-client-2.2.0/share/hadoop/client/lib/guava-11.0.2.jar > > hadoop-client-2.2.0/share/hadoop/client/lib/hadoop-mapreduce-client-app-2.2.0.jar > hadoop-client-2.2.0/share/hadoop/client/lib/commons-httpclient-3.1.jar > hadoop-client-2.2.0/share/hadoop/client/lib/jackson-mapper-asl-1.8.8.jar > hadoop-client-2.2.0/share/hadoop/client/lib/jetty-util-6.1.26.jar > hadoop-client-2.2.0/share/hadoop/client/hadoop-client-2.2.0.jar > > > > On Wed, Jul 16, 2014 at 4:45 PM, Nick Dimiduk <[email protected]> wrote: > > > hbase-shell is a separate module in the java build (as is hbase-client). > > Are you thinking in terms java or of bigtop packaging here? > > > > > > On Wed, Jul 16, 2014 at 4:18 PM, Jerry He <[email protected]> wrote: > > > > > Hi, Nick > > > > > > If there is a way to include the hbase shell in a 'client only' > > > package/assembly, that will be great. > > > For the REST/Thrift gateways, there are probably people who want to > have > > > separate packages for them to install them. But not on my mind yet. > > > > > > > > > > > > On Wed, Jul 16, 2014 at 3:44 PM, Nick Dimiduk <[email protected]> > > wrote: > > > > > > > What does "client package" include? Just the java client library? The > > > > shell? REST/Thrift gateways? > > > > > > > > > > > > On Wed, Jul 16, 2014 at 3:11 PM, Jerry He <[email protected]> > wrote: > > > > > > > > > Thanks for the reply, Ted, Nick. > > > > > As Nick said, with maven/ivy and access to repositories, people can > > > build > > > > > and run their client applications. > > > > > > > > > > Exploring options to provide a client package download for our > users. > > > > > > > > > > > > > > > On Wed, Jul 16, 2014 at 8:28 AM, Nick Dimiduk <[email protected]> > > > > wrote: > > > > > > > > > > > You need to build the client? Is it not sufficient to add a > > > dependency > > > > on > > > > > > the client library to your project? Maven/Ivy should sort the > rest > > > for > > > > > you. > > > > > > > > > > > > > > > > > > On Wed, Jul 16, 2014 at 1:24 AM, Ted Yu <[email protected]> > > wrote: > > > > > > > > > > > > > I looked at top level pom.xml > > > > > > > I didn't find such a profile. > > > > > > > > > > > > > > Cheers > > > > > > > > > > > > > > On Jul 15, 2014, at 4:41 PM, Jerry He <[email protected]> > > wrote: > > > > > > > > > > > > > > > Hi, folk > > > > > > > > > > > > > > > > Is there a HBase mvn build target to build a package for a > > HBase > > > > > > > standalone > > > > > > > > client, including the hbase-client, hbase-common, and > > > dependencies > > > > > that > > > > > > > are > > > > > > > > required by a working client? > > > > > > > > > > > > > > > > Thanks in advance. > > > > > > > > > > > > > > > > Jerry > > > > > > > > > > > > > > > > > > > > > > > > > > > >
