hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Jeltema <brian.jelt...@digitalenvoy.net>
Subject Re: `hbase classpath` command causes “File name too long” error
Date Fri, 17 Jun 2016 11:03:01 GMT
It’s the first ‘$’ that’s killing you.

it should be`

   export HADOOP_CLASSPATH=`${HBASE_HOME}/bin/hbase classpath`

> On Jun 17, 2016, at 6:41 AM, Mahesha999 <abnave.m@gmail.com> wrote:
> 
> I am trying out HBase bulk loading. The command looks like this:
> 
>   $HADOOP_CLASSPATH=`${HBASE_HOME}/bin/hbase classpath`
> ${HADOOP_HOME}/bin/hadoop jar ${HBASE_HOME}/hbase-server-1.2.1.jar importtsv
> -Dimporttsv.columns=HBASE_ROW_KEY,d:c1,d:c2
> -Dimporttsv.bulk.output=hdfs://localhost:9000/bulkloadoutputdir datatsv 
> hdfs://localhost:9000/bulkloadinputdir/
> 
> However this was running correctly earlier, but now it seems that it is
> giving error while evaluating the command ${HBASE_HOME}/bin/hbase classpath
> saying File name too long. I dont know whats happened. Earlier that command
> used to work perfectly. But now the classpath seems to have increased in its
> length!!! I dont know how this might happen. The output of running above
> commands looks like this:
> 
> -bash:
> =/opt/hbase-1.2.1/conf:/opt/jdk1.8.0_92/lib/tools.jar:/opt/hbase-1.2.1:/opt/hbase-1.2.1/lib/activation-1.1.jar:/opt/hbase-1.2.1/lib/antisamy-1.4.3.jar:/opt/hbase-1.2.1/lib/aopalliance-1.0.jar:/opt/hbase-1.2.1/lib/apacheds-i18n-2.0.0-M15.jar:/opt/hbase-1.2.1/lib/apacheds-kerberos-codec-2.0.0-M15.jar:/opt/hbase-1.2.1/lib/api-asn1-api-1.0.0-M20.jar:/opt/hbase-1.2.1/lib/api-util-1.0.0-M20.jar:/opt/hbase-1.2.1/lib/asm-3.1.jar:/opt/hbase-1.2.1/lib/avro-1.7.4.jar:/opt/hbase-1.2.1/lib/batik-css-1.7.jar:/opt/hbase-1.2.1/lib/batik-ext-1.7.jar:/opt/hbase-1.2.1/lib/batik-util-1.7.jar:/opt/hbase-1.2.1/lib/bsh-core-2.0b4.jar:/opt/hbase-1.2.1/lib/commons-beanutils-1.7.0.jar:/opt/hbase-1.2.1/lib/commons-beanutils-core-1.7.0.jar:/opt/hbase-1.2.1/lib/commons-cli-1.2.jar:/opt/hbase-1.2.1/lib/commons-codec-1.9.jar:/opt/hbase-1.2.1/lib/commons-collections-3.2.2.jar:/opt/hbase-1.2.1/lib/commons-compress-1.4.1.jar:/opt/hbase-1.2.1/lib/commons-configuration-1.6.jar:/opt/hbase-1.2.1/lib/commons-daemon-1.0.13.jar:/opt/hbase-1.2.1/lib/commons-digester-1.8.jar:/opt/hbase-1.2.1/lib/commons-el-1.0.jar:/opt/hbase-1.2.1/lib/commons-fileupload-1.2.jar:/opt/hbase-1.2.1/lib/commons-httpclient-3.1.jar:/opt/hbase-1.2.1/lib/commons-io-2.4.jar:/opt/hbase-1.2.1/lib/commons-lang-2.6.jar:/opt/hbase-1.2.1/lib/commons-logging-1.2.jar:/opt/hbase-1.2.1/lib/commons-math-2.2.jar:/opt/hbase-1.2.1/lib/commons-math3-3.1.1.jar:/opt/hbase-1.2.1/lib/commons-net-3.1.jar:/opt/hbase-1.2.1/lib/disruptor-3.3.0.jar:/opt/hbase-1.2.1/lib/esapi-2.1.0.jar:/opt/hbase-1.2.1/lib/findbugs-annotations-1.3.9-1.jar:/opt/hbase-1.2.1/lib/guava-12.0.1.jar:/opt/hbase-1.2.1/lib/guice-3.0.jar:/opt/hbase-1.2.1/lib/guice-servlet-3.0.jar:/opt/hbase-1.2.1/lib/hadoop-annotations-2.5.1.jar:/opt/hbase-1.2.1/lib/hadoop-auth-2.5.1.jar:/opt/hbase-1.2.1/lib/hadoop-client-2.5.1.jar:/opt/hbase-1.2.1/lib/hadoop-common-2.5.1.jar:/opt/hbase-1.2.1/lib/hadoop-hdfs-2.5.1.jar:/opt/hbase-1.2.1/lib/hadoop-mapreduce-client-app-2.5.1.jar:/opt/hbase-1.2.1/lib/hadoop-mapreduce-client-common-2.5.1.jar:/opt/hbase-1.2.1/lib/hadoop-mapreduce-client-core-2.5.1.jar:/opt/hbase-1.2.1/lib/hadoop-mapreduce-client-jobclient-2.5.1.jar:/opt/hbase-1.2.1/lib/hadoop-mapreduce-client-shuffle-2.5.1.jar:/opt/hbase-1.2.1/lib/hadoop-yarn-api-2.5.1.jar:/opt/hbase-1.2.1/lib/hadoop-yarn-client-2.5.1.jar:/opt/hbase-1.2.1/lib/hadoop-yarn-common-2.5.1.jar:/opt/hbase-1.2.1/lib/hadoop-yarn-server-common-2.5.1.jar:/opt/hbase-1.2.1/lib/hbase-annotations-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-annotations-1.2.1-tests.jar:/opt/hbase-1.2.1/lib/hbase-client-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-common-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-common-1.2.1-tests.jar:/opt/hbase-1.2.1/lib/hbase-examples-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-external-blockcache-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-hadoop2-compat-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-hadoop-compat-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-it-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-it-1.2.1-tests.jar:/opt/hbase-1.2.1/lib/hbase-prefix-tree-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-procedure-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-protocol-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-resource-bundle-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-rest-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-server-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-server-1.2.1-tests.jar:/opt/hbase-1.2.1/lib/hbase-shell-1.2.1.jar:/opt/hbase-1.2.1/lib/hbase-thrift-1.2.1.jar:/opt/hbase-1.2.1/lib/htrace-core-3.1.0-incubating.jar:/opt/hbase-1.2.1/lib/httpclient-4.2.5.jar:/opt/hbase-1.2.1/lib/httpcore-4.4.1.jar:/opt/hbase-1.2.1/lib/jackson-core-asl-1.9.13.jar:/opt/hbase-1.2.1/lib/jackson-jaxrs-1.9.13.jar:/opt/hbase-1.2.1/lib/jackson-mapper-asl-1.9.13.jar:/opt/hbase-1.2.1/lib/jackson-xc-1.9.13.jar:/opt/hbase-1.2.1/lib/jamon-runtime-2.4.1.jar:/opt/hbase-1.2.1/lib/jasper-compiler-5.5.23.jar:/opt/hbase-1.2.1/lib/jasper-runtime-5.5.23.jar:/opt/hbase-1.2.1/lib/javax.inject-1.jar:/opt/hbase-1.2.1/lib/java-xmlbuilder-0.4.jar:/opt/hbase-1.2.1/lib/jaxb-api-2.2.2.jar:/opt/hbase-1.2.1/lib/jaxb-impl-2.2.3-1.jar:/opt/hbase-1.2.1/lib/jcodings-1.0.8.jar:/opt/hbase-1.2.1/lib/jersey-client-1.9.jar:/opt/hbase-1.2.1/lib/jersey-core-1.9.jar:/opt/hbase-1.2.1/lib/jersey-guice-1.9.jar:/opt/hbase-1.2.1/lib/jersey-json-1.9.jar:/opt/hbase-1.2.1/lib/jersey-server-1.9.jar:/opt/hbase-1.2.1/lib/jets3t-0.9.0.jar:/opt/hbase-1.2.1/lib/jettison-1.3.3.jar:/opt/hbase-1.2.1/lib/jetty-6.1.26.jar:/opt/hbase-1.2.1/lib/jetty-sslengine-6.1.26.jar:/opt/hbase-1.2.1/lib/jetty-util-6.1.26.jar:/opt/hbase-1.2.1/lib/joni-2.1.2.jar:/opt/hbase-1.2.1/lib/jruby-complete-1.6.8.jar:/opt/hbase-1.2.1/lib/jsch-0.1.42.jar:/opt/hbase-1.2.1/lib/jsp-2.1-6.1.14.jar:/opt/hbase-1.2.1/lib/jsp-api-2.1-6.1.14.jar:/opt/hbase-1.2.1/lib/jsr305-1.3.9.jar:/opt/hbase-1.2.1/lib/junit-4.12.jar:/opt/hbase-1.2.1/lib/leveldbjni-all-1.8.jar:/opt/hbase-1.2.1/lib/libthrift-0.9.3.jar:/opt/hbase-1.2.1/lib/log4j-1.2.17.jar:/opt/hbase-1.2.1/lib/metrics-core-2.2.0.jar:/opt/hbase-1.2.1/lib/nekohtml-1.9.12.jar:/opt/hbase-1.2.1/lib/netty-all-4.0.23.Final.jar:/opt/hbase-1.2.1/lib/paranamer-2.3.jar:/opt/hbase-1.2.1/lib/protobuf-java-2.5.0.jar:/opt/hbase-1.2.1/lib/servlet-api-2.5-6.1.14.jar:/opt/hbase-1.2.1/lib/servlet-api-2.5.jar:/opt/hbase-1.2.1/lib/slf4j-api-1.7.7.jar:/opt/hbase-1.2.1/lib/slf4j-log4j12-1.7.5.jar:/opt/hbase-1.2.1/lib/snappy-java-1.0.4.1.jar:/opt/hbase-1.2.1/lib/spymemcached-2.11.6.jar:/opt/hbase-1.2.1/lib/xalan-2.7.0.jar:/opt/hbase-1.2.1/lib/xml-apis-1.3.03.jar:/opt/hbase-1.2.1/lib/xml-apis-ext-1.3.04.jar:/opt/hbase-1.2.1/lib/xmlenc-0.52.jar:/opt/hbase-1.2.1/lib/xom-1.2.5.jar:/opt/hbase-1.2.1/lib/xz-1.0.jar:/opt/hbase-1.2.1/lib/zookeeper-3.4.6.jar:/opt/hadoop-2.7.2/etc/hadoop:/opt/hadoop-2.7.2/share/hadoop/common/lib/*:/opt/hadoop-2.7.2/share/hadoop/common/*:/opt/hadoop-2.7.2/share/hadoop/hdfs:/opt/hadoop-2.7.2/share/hadoop/hdfs/lib/*:/opt/hadoop-2.7.2/share/hadoop/hdfs/*:/opt/hadoop-2.7.2/share/hadoop/yarn/lib/*:/opt/hadoop-2.7.2/share/hadoop/yarn/*:/opt/hadoop-2.7.2/share/hadoop/mapreduce/lib/*:/opt/hadoop-2.7.2/share/hadoop/mapreduce/*:/opt/hadoop-2.7.2/contrib/capacity-scheduler/*.jar:
> File name too long
> 
> Why is this so? Is the command output expected to vary? 
> 
> (Stackoverflow link:
> http://stackoverflow.com/questions/37657011/hbase-classpath-command-causes-file-name-too-long-error)
> 
> 
> 
> --
> View this message in context: http://apache-hbase.679495.n3.nabble.com/hbase-classpath-command-causes-File-name-too-long-error-tp4080706.html
> Sent from the HBase User mailing list archive at Nabble.com.


Mime
View raw message