hbase-server-0.98.6-hadoop2.jar下方法测试失败

时间:2022-03-01 23:11:01

先说失败原因:我用了校园网

[beifeng@hadoop hbase-0.98.6-hadoop2]$ /opt/modules/hadoop-2.7.3/bin/yarn jar lib/hbase-server-0.98.6-hadoop2.jar

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/filter/Filter
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
        at java.lang.Class.getMethod0(Class.java:2813)
        at java.lang.Class.getMethod(Class.java:1663)
        at org.apache.hadoop.util.ProgramDriver$ProgramDescription.<init>(ProgramDriver.java:59)
        at org.apache.hadoop.util.ProgramDriver.addClass(ProgramDriver.java:103)
        at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:39)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.filter.Filter
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 13 more

缺少jar包,导入

[beifeng@hadoop hbase-0.98.6-hadoop2]$ export HBASE_HOME=/opt/modules/hbase-0.98.6-hadoop2
[beifeng@hadoop hbase-0.98.6-hadoop2]$ export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:`$HBASE_HOME/bin/hbase mapredcp`

再运行

[beifeng@hadoop hbase-0.98.6-hadoop2]$ /opt/modules/hadoop-2.7.3/bin/yarn jar lib/hbase-server-0.98.6-hadoop2.jar
An example program must be given as the first argument.
Valid program names are:
  CellCounter: Count cells in HBase table
  completebulkload: Complete a bulk data load.
  copytable: Export a table from local cluster to peer cluster
  export: Write table data to HDFS.
  import: Import data written by Export.
  importtsv: Import data in TSV format.
  rowcounter: Count rows in HBase table
  verifyrep: Compare the data from tables in two different clusters. WARNING: It doesn't work for incrementColumnValues'd cells since the timestamp is changed after being appended to the log.

测试rowcounter

[beifeng@hadoop hbase-0.98.6-hadoop2]$ /opt/modules/hadoop-2.7.3/bin/yarn jar lib/hbase-server-0.98.6-hadoop2.jar rowcounter hadoop19:tb1
17/12/26 18:43:26 INFO client.RMProxy: Connecting to ResourceManager at hadoop/192.168.246.100:8032
17/12/26 18:43:28 INFO zookeeper.RecoverableZooKeeper: Process identifier=hconnection-0x772c59a3 connecting to ZooKeeper ensemble=localhost:2181
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:host.name=hadoop
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:java.version=1.7.0_67
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:java.vendor=Oracle Corporation
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:java.home=/opt/modules/jdk1.7.0_67/jre
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:java.class.path=/opt/modules/hadoop-2.7.3/etc/hadoop:/opt/modules/hadoop-2.7.3/etc/hadoop:/opt/modules/hadoop-2.7.3/etc/hadoop:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/activation-1.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jsp-api-2.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jersey-core-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jets3t-0.9.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/asm-3.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-logging-1.1.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jsch-0.1.42.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-httpclient-3.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/avro-1.7.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/snappy-java-1.0.4.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jetty-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-digester-1.8.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jettison-1.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jackson-mapper-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/log4j-1.2.17.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/stax-api-1.0-2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-cli-1.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-math3-3.1.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-compress-1.4.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jsr305-3.0.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/xmlenc-0.52.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/curator-recipes-2.7.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/api-asn1-api-1.0.0-M20.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/servlet-api-2.5.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-codec-1.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/curator-client-2.7.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/zookeeper-3.4.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-beanutils-1.7.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jackson-core-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/httpcore-4.2.5.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/guava-11.0.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/junit-4.11.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-io-2.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/htrace-core-3.1.0-incubating.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-beanutils-core-1.8.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/slf4j-api-1.7.10.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/curator-framework-2.7.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jetty-util-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-lang-2.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/paranamer-2.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jersey-server-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/mockito-all-1.8.5.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-configuration-1.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jaxb-impl-2.2.3-1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/xz-1.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/hadoop-annotations-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/apacheds-kerberos-codec-2.0.0-M15.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-net-3.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/hadoop-auth-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/gson-2.2.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jackson-jaxrs-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jersey-json-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/protobuf-java-2.5.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-collections-3.2.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/apacheds-i18n-2.0.0-M15.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/hamcrest-core-1.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jaxb-api-2.2.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/java-xmlbuilder-0.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/api-util-1.0.0-M20.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/httpclient-4.2.5.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/netty-3.6.2.Final.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jackson-xc-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/hadoop-common-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/hadoop-nfs-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/hadoop-common-2.7.3-tests.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/jersey-core-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/asm-3.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/commons-logging-1.1.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/jetty-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/jackson-mapper-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/log4j-1.2.17.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/commons-cli-1.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/jsr305-3.0.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/xmlenc-0.52.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/servlet-api-2.5.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/commons-codec-1.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/xml-apis-1.3.04.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/jackson-core-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/guava-11.0.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/commons-daemon-1.0.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/commons-io-2.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/htrace-core-3.1.0-incubating.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/jetty-util-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/commons-lang-2.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/leveldbjni-all-1.8.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/jersey-server-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/netty-all-4.0.23.Final.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/protobuf-java-2.5.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/xercesImpl-2.9.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/netty-3.6.2.Final.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/hadoop-hdfs-nfs-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/hadoop-hdfs-2.7.3-tests.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/hadoop-hdfs-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/activation-1.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-core-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/asm-3.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-logging-1.1.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-guice-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jetty-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/zookeeper-3.4.6-tests.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/aopalliance-1.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jettison-1.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-mapper-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/log4j-1.2.17.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/stax-api-1.0-2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-cli-1.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/guice-servlet-3.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-compress-1.4.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jsr305-3.0.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/servlet-api-2.5.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-codec-1.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/zookeeper-3.4.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-core-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/guava-11.0.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/javax.inject-1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-io-2.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jetty-util-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-lang-2.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/leveldbjni-all-1.8.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-server-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jaxb-impl-2.2.3-1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/xz-1.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-client-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-jaxrs-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-json-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/protobuf-java-2.5.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-collections-3.2.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jaxb-api-2.2.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/netty-3.6.2.Final.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-xc-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/guice-3.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-common-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-common-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-nodemanager-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-client-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-sharedcachemanager-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-web-proxy-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-tests-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-registry-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-api-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-applicationhistoryservice-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/jersey-core-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/asm-3.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/avro-1.7.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/snappy-java-1.0.4.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/jersey-guice-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/aopalliance-1.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/jackson-mapper-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/log4j-1.2.17.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/guice-servlet-3.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/commons-compress-1.4.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/jackson-core-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/junit-4.11.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/javax.inject-1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/commons-io-2.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/paranamer-2.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/leveldbjni-all-1.8.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/jersey-server-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/xz-1.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/hadoop-annotations-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/protobuf-java-2.5.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/hamcrest-core-1.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/netty-3.6.2.Final.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/guice-3.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.7.3-tests.jar::/opt/modules/hbase-0.98.6-hadoop2/lib/hbase-common-0.98.6-hadoop2.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/protobuf-java-2.5.0.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/hbase-client-0.98.6-hadoop2.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/hbase-hadoop-compat-0.98.6-hadoop2.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/hbase-server-0.98.6-hadoop2.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/hbase-protocol-0.98.6-hadoop2.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/high-scale-lib-1.1.1.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/zookeeper-3.4.5.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/guava-12.0.1.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/htrace-core-2.04.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/netty-3.6.6.Final.jar:/contrib/capacity-scheduler/*.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-common-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-common-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-nodemanager-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-client-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-sharedcachemanager-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-web-proxy-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-tests-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-registry-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-api-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-applicationhistoryservice-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/activation-1.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-core-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/asm-3.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-logging-1.1.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-guice-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jetty-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/zookeeper-3.4.6-tests.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/aopalliance-1.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jettison-1.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-mapper-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/log4j-1.2.17.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/stax-api-1.0-2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-cli-1.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/guice-servlet-3.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-compress-1.4.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jsr305-3.0.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/servlet-api-2.5.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-codec-1.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/zookeeper-3.4.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-core-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/guava-11.0.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/javax.inject-1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-io-2.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jetty-util-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-lang-2.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/leveldbjni-all-1.8.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-server-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jaxb-impl-2.2.3-1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/xz-1.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-client-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-jaxrs-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-json-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/protobuf-java-2.5.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-collections-3.2.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jaxb-api-2.2.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/netty-3.6.2.Final.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-xc-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/guice-3.0.jar
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:java.library.path=/opt/modules/hadoop-2.7.3/lib/native
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmp
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:os.arch=amd64
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:os.version=2.6.32-358.el6.x86_64
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:user.name=beifeng
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:user.home=/home/beifeng
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Client environment:user.dir=/opt/modules/hbase-0.98.6-hadoop2
17/12/26 18:43:28 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=90000 watcher=hconnection-0x772c59a3, quorum=localhost:2181, baseZNode=/hbase
17/12/26 18:43:28 INFO zookeeper.ClientCnxn: Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error)
17/12/26 18:43:28 INFO zookeeper.ClientCnxn: Socket connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session
17/12/26 18:43:29 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid = 0x16091e10a550009, negotiated timeout = 40000
17/12/26 18:43:29 INFO util.RegionSizeCalculator: Calculating region sizes for table "hadoop19:tb1".
17/12/26 18:43:29 INFO mapreduce.JobSubmitter: Cleaning up the staging area /tmp/hadoop-yarn/staging/beifeng/.staging/job_1514275883235_0002
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:54)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.lang.NullPointerException
        at org.apache.hadoop.net.DNS.reverseDns(DNS.java:92)
        at org.apache.hadoop.hbase.mapreduce.TableInputFormatBase.reverseDNS(TableInputFormatBase.java:228)
        at org.apache.hadoop.hbase.mapreduce.TableInputFormatBase.getSplits(TableInputFormatBase.java:191)
        at org.apache.hadoop.mapreduce.JobSubmitter.writeNewSplits(JobSubmitter.java:301)
        at org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:318)
        at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:196)
        at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1290)
        at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1287)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:415)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1698)
        at org.apache.hadoop.mapreduce.Job.submit(Job.java:1287)
        at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1308)
        at org.apache.hadoop.hbase.mapreduce.RowCounter.main(RowCounter.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:71)
        at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144)
        at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:152)
        ... 11 more

断开校园网,或者连其他网络后重新运行,成功!

[beifeng@hadoop hbase-0.98.6-hadoop2]$ /opt/modules/hadoop-2.7.3/bin/yarn jar lib/hbase-server-0.98.6-hadoop2.jar rowcounter hadoop19:tb1
17/12/26 16:15:32 INFO client.RMProxy: Connecting to ResourceManager at hadoop/192.168.246.100:8032
17/12/26 16:15:35 INFO zookeeper.RecoverableZooKeeper: Process identifier=hconnection-0x46728703 connecting to ZooKeeper ensemble=localhost:2181
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:host.name=hadoop
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:java.version=1.7.0_67
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:java.vendor=Oracle Corporation
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:java.home=/opt/modules/jdk1.7.0_67/jre
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:java.class.path=/opt/modules/hadoop-2.7.3/etc/hadoop:/opt/modules/hadoop-2.7.3/etc/hadoop:/opt/modules/hadoop-2.7.3/etc/hadoop:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/activation-1.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jsp-api-2.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jersey-core-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jets3t-0.9.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/asm-3.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-logging-1.1.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jsch-0.1.42.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-httpclient-3.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/avro-1.7.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/snappy-java-1.0.4.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jetty-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-digester-1.8.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jettison-1.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jackson-mapper-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/log4j-1.2.17.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/stax-api-1.0-2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-cli-1.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-math3-3.1.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-compress-1.4.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jsr305-3.0.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/xmlenc-0.52.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/curator-recipes-2.7.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/api-asn1-api-1.0.0-M20.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/servlet-api-2.5.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-codec-1.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/curator-client-2.7.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/zookeeper-3.4.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-beanutils-1.7.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jackson-core-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/httpcore-4.2.5.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/guava-11.0.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/junit-4.11.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-io-2.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/htrace-core-3.1.0-incubating.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-beanutils-core-1.8.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/slf4j-api-1.7.10.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/curator-framework-2.7.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jetty-util-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-lang-2.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/paranamer-2.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jersey-server-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/mockito-all-1.8.5.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-configuration-1.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jaxb-impl-2.2.3-1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/xz-1.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/hadoop-annotations-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/apacheds-kerberos-codec-2.0.0-M15.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-net-3.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/hadoop-auth-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/gson-2.2.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jackson-jaxrs-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jersey-json-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/protobuf-java-2.5.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/commons-collections-3.2.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/apacheds-i18n-2.0.0-M15.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/hamcrest-core-1.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jaxb-api-2.2.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/java-xmlbuilder-0.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/api-util-1.0.0-M20.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/httpclient-4.2.5.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/netty-3.6.2.Final.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/lib/jackson-xc-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/hadoop-common-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/hadoop-nfs-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/common/hadoop-common-2.7.3-tests.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/jersey-core-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/asm-3.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/commons-logging-1.1.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/jetty-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/jackson-mapper-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/log4j-1.2.17.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/commons-cli-1.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/jsr305-3.0.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/xmlenc-0.52.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/servlet-api-2.5.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/commons-codec-1.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/xml-apis-1.3.04.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/jackson-core-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/guava-11.0.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/commons-daemon-1.0.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/commons-io-2.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/htrace-core-3.1.0-incubating.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/jetty-util-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/commons-lang-2.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/leveldbjni-all-1.8.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/jersey-server-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/netty-all-4.0.23.Final.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/protobuf-java-2.5.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/xercesImpl-2.9.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/lib/netty-3.6.2.Final.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/hadoop-hdfs-nfs-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/hadoop-hdfs-2.7.3-tests.jar:/opt/modules/hadoop-2.7.3/share/hadoop/hdfs/hadoop-hdfs-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/activation-1.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-core-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/asm-3.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-logging-1.1.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-guice-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jetty-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/zookeeper-3.4.6-tests.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/aopalliance-1.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jettison-1.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-mapper-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/log4j-1.2.17.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/stax-api-1.0-2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-cli-1.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/guice-servlet-3.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-compress-1.4.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jsr305-3.0.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/servlet-api-2.5.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-codec-1.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/zookeeper-3.4.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-core-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/guava-11.0.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/javax.inject-1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-io-2.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jetty-util-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-lang-2.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/leveldbjni-all-1.8.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-server-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jaxb-impl-2.2.3-1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/xz-1.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-client-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-jaxrs-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-json-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/protobuf-java-2.5.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-collections-3.2.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jaxb-api-2.2.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/netty-3.6.2.Final.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-xc-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/guice-3.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-common-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-common-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-nodemanager-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-client-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-sharedcachemanager-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-web-proxy-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-tests-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-registry-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-api-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-applicationhistoryservice-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/jersey-core-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/asm-3.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/avro-1.7.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/snappy-java-1.0.4.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/jersey-guice-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/aopalliance-1.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/jackson-mapper-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/log4j-1.2.17.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/guice-servlet-3.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/commons-compress-1.4.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/jackson-core-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/junit-4.11.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/javax.inject-1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/commons-io-2.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/paranamer-2.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/leveldbjni-all-1.8.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/jersey-server-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/xz-1.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/hadoop-annotations-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/protobuf-java-2.5.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/hamcrest-core-1.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/netty-3.6.2.Final.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/lib/guice-3.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.7.3-tests.jar::/opt/modules/hbase-0.98.6-hadoop2/lib/hbase-common-0.98.6-hadoop2.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/protobuf-java-2.5.0.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/hbase-client-0.98.6-hadoop2.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/hbase-hadoop-compat-0.98.6-hadoop2.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/hbase-server-0.98.6-hadoop2.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/hbase-protocol-0.98.6-hadoop2.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/high-scale-lib-1.1.1.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/zookeeper-3.4.5.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/guava-12.0.1.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/htrace-core-2.04.jar:/opt/modules/hbase-0.98.6-hadoop2/lib/netty-3.6.6.Final.jar:/contrib/capacity-scheduler/*.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-common-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-common-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-nodemanager-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-client-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-sharedcachemanager-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-web-proxy-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-tests-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-registry-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-api-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/hadoop-yarn-server-applicationhistoryservice-2.7.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/activation-1.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-core-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/asm-3.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-logging-1.1.3.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-guice-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jetty-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/zookeeper-3.4.6-tests.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/aopalliance-1.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jettison-1.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-mapper-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/log4j-1.2.17.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/stax-api-1.0-2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-cli-1.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/guice-servlet-3.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-compress-1.4.1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jsr305-3.0.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/servlet-api-2.5.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-codec-1.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/zookeeper-3.4.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-core-asl-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/guava-11.0.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/javax.inject-1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-io-2.4.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jetty-util-6.1.26.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-lang-2.6.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/leveldbjni-all-1.8.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-server-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jaxb-impl-2.2.3-1.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/xz-1.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-client-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-jaxrs-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jersey-json-1.9.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/protobuf-java-2.5.0.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/commons-collections-3.2.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jaxb-api-2.2.2.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/netty-3.6.2.Final.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/jackson-xc-1.9.13.jar:/opt/modules/hadoop-2.7.3/share/hadoop/yarn/lib/guice-3.0.jar
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:java.library.path=/opt/modules/hadoop-2.7.3/lib/native
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmp
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:os.arch=amd64
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:os.version=2.6.32-358.el6.x86_64
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:user.name=beifeng
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:user.home=/home/beifeng
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Client environment:user.dir=/opt/modules/hbase-0.98.6-hadoop2
17/12/26 16:15:35 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=90000 watcher=hconnection-0x46728703, quorum=localhost:2181, baseZNode=/hbase
17/12/26 16:15:35 INFO zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
17/12/26 16:15:35 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session
17/12/26 16:15:35 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x16091e10a550007, negotiated timeout = 40000
17/12/26 16:15:35 INFO util.RegionSizeCalculator: Calculating region sizes for table "hadoop19:tb1".
17/12/26 16:15:51 WARN mapreduce.TableInputFormatBase: Cannot resolve the host name for hadoop/192.168.246.100 because of javax.naming.CommunicationException: DNS error [Root exception is java.net.SocketTimeoutException: Receive timed out]; remaining name '100.246.168.192.in-addr.arpa'
17/12/26 16:15:51 INFO mapreduce.JobSubmitter: number of splits:1
17/12/26 16:15:51 INFO Configuration.deprecation: io.bytes.per.checksum is deprecated. Instead, use dfs.bytes-per-checksum
17/12/26 16:15:51 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1514275883235_0001
17/12/26 16:15:52 INFO impl.YarnClientImpl: Submitted application application_1514275883235_0001
17/12/26 16:15:52 INFO mapreduce.Job: The url to track the job: http://hadoop:8088/proxy/application_1514275883235_0001/
17/12/26 16:15:52 INFO mapreduce.Job: Running job: job_1514275883235_0001
17/12/26 16:16:04 INFO mapreduce.Job: Job job_1514275883235_0001 running in uber mode : false
17/12/26 16:16:04 INFO mapreduce.Job:  map 0% reduce 0%
17/12/26 16:16:13 INFO mapreduce.Job:  map 100% reduce 0%
17/12/26 16:16:13 INFO mapreduce.Job: Job job_1514275883235_0001 completed successfully
17/12/26 16:16:14 INFO mapreduce.Job: Counters: 41
        File System Counters
                FILE: Number of bytes read=0
                FILE: Number of bytes written=145962
                FILE: Number of read operations=0
                FILE: Number of large read operations=0
                FILE: Number of write operations=0
                HDFS: Number of bytes read=70
                HDFS: Number of bytes written=0
                HDFS: Number of read operations=1
                HDFS: Number of large read operations=0
                HDFS: Number of write operations=0
        Job Counters 
                Launched map tasks=1
                Data-local map tasks=1
                Total time spent by all maps in occupied slots (ms)=6183
                Total time spent by all reduces in occupied slots (ms)=0
                Total time spent by all map tasks (ms)=6183
                Total vcore-milliseconds taken by all map tasks=6183
                Total megabyte-milliseconds taken by all map tasks=6331392
        Map-Reduce Framework
                Map input records=2
                Map output records=0
                Input split bytes=70
                Spilled Records=0
                Failed Shuffles=0
                Merged Map outputs=0
                GC time elapsed (ms)=177
                CPU time spent (ms)=2320
                Physical memory (bytes) snapshot=130764800
                Virtual memory (bytes) snapshot=872050688
                Total committed heap usage (bytes)=23855104
        HBase Counters
                BYTES_IN_REMOTE_RESULTS=0
                BYTES_IN_RESULTS=69
                MILLIS_BETWEEN_NEXTS=345
                NOT_SERVING_REGION_EXCEPTION=0
                NUM_SCANNER_RESTARTS=0
                REGIONS_SCANNED=1
                REMOTE_RPC_CALLS=0
                REMOTE_RPC_RETRIES=0
                RPC_CALLS=3
                RPC_RETRIES=0
        org.apache.hadoop.hbase.mapreduce.RowCounter$RowCounterMapper$Counters
                ROWS=2
        File Input Format Counters 
                Bytes Read=0
        File Output Format Counters 
                Bytes Written=0

原因不明,校园网都需要固定的ip和DNS,难道和这个有关系?

hbase-server-0.98.6-hadoop2.jar下方法测试失败