Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Accumulo >> mail # dev >> MapReduceExample When Executed Displays Usage And Error Message


Copy link to this message
-
Re: MapReduceExample When Executed Displays Usage And Error Message
I pulled the latest Accumulo code, compiled it so I have new jar
files. Then ran the MapReduceExample with no modifications. Here is
the output ... note the stacktrace:

   ---- Running Mapred Against Accumulo

13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client
environment:zookeeper.version=3.3.1-942149, built on 05/07/2010 17:14
GMT
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client
environment:host.name=ubuntu20gb
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client
environment:java.version=1.7.0_09
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client
environment:java.vendor=Oracle Corporation
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client
environment:java.home=/usr/local/jdk1.7.0_09/jre
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client
environment:java.class.path=/home/medined/workspace/accumulo_playground/target/classes:/home/medined/workspace/accumulo_playground/target/test-classes:/home/medined/springsource/sts-3.1.0.RELEASE/plugins/org.junit_4.10.0.v4_10_0_v20120426-0900/junit.jar:/home/medined/springsource/sts-3.1.0.RELEASE/plugins/org.hamcrest.core_1.1.0.v20090501071000.jar:/home/medined/workspace/accumulo_playground/lib/commons-cli-1.2.jar:/home/medined/workspace/accumulo_playground/lib/commons-codec-1.5.jar:/home/medined/workspace/accumulo_playground/lib/commons-logging-1.0.4.jar:/home/medined/workspace/accumulo_playground/lib/commons-logging-api-1.0.4.jar:/home/medined/workspace/accumulo_playground/lib/hadoop-core-0.20.2.jar:/home/medined/workspace/accumulo_playground/lib/libthrift-0.6.1.jar:/home/medined/workspace/accumulo_playground/lib/log4j-1.2.16.jar:/home/medined/workspace/accumulo_playground/lib/slf4j-api-1.5.6.jar:/home/medined/workspace/accumulo_playground/lib/slf4j-log4j12-1.4.3.jar:/home/medined/workspace/accumulo_playground/lib/zookeeper-3.3.1.jar:/home/medined/workspace/accumulo_playground/lib/commons-jci-fam-1.0.jar:/home/medined/workspace/accumulo_playground/lib/commons-jci-core-1.0.jar:/home/medined/workspace/accumulo_playground/lib/commons-math3-3.0.jar:/home/medined/workspace/accumulo_playground/lib/commons-lang-2.4.jar:/home/medined/workspace/accumulo_playground/lib/commons-collections-3.2.jar:/home/medined/workspace/accumulo_playground/lib/accumulo-core-1.5.0-SNAPSHOT.jar:/home/medined/workspace/accumulo_playground/lib/accumulo-examples-simple-1.5.0-SNAPSHOT.jar:/home/medined/workspace/accumulo_playground/lib/accumulo-fate-1.5.0-SNAPSHOT.jar:/home/medined/workspace/accumulo_playground/lib/accumulo-proxy-1.5.0-SNAPSHOT.jar:/home/medined/workspace/accumulo_playground/lib/accumulo-server-1.5.0-SNAPSHOT.jar:/home/medined/workspace/accumulo_playground/lib/accumulo-start-1.5.0-SNAPSHOT.jar:/home/medined/workspace/accumulo_playground/lib/accumulo-test-1.5.0-SNAPSHOT.jar:/home/medined/workspace/accumulo_playground/lib/accumulo-trace-1.5.0-SNAPSHOT.jar:/home/medined/workspace/accumulo_playground/lib/commons-io-2.4.jar:/home/medined/workspace/accumulo_playground/lib/jcommander-1.30.jar
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client
environment:java.library.path=/usr/local/jdk1.7.0_09/jre/lib/i386/client:/usr/local/jdk1.7.0_09/jre/lib/i386:/usr/local/jdk1.7.0_09/jre/../lib/i386:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386:/usr/lib/jvm/java-6-openjdk-i386/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client
environment:java.io.tmpdir=/tmp
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client
environment:java.compiler=<NA>
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client environment:os.arch=i386
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client
environment:os.version=3.2.0-35-generic-pae
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client environment:user.name=medined
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client
environment:user.home=/home/medined
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Client
environment:user.dir=/home/medined/workspace/accumulo_playground
13/02/12 19:34:45 INFO zookeeper.ZooKeeper: Initiating client
connection, connectString=localhost:3489 sessionTimeout=30000
watcher=org.apache.accumulo.fate.zookeeper.ZooSession$ZooWatcher@11b16
13/02/12 19:34:45 INFO zookeeper.ClientCnxn: Opening socket connection
to server localhost/127.0.0.1:3489
13/02/12 19:34:45 WARN zookeeper.ClientCnxn: Session 0x0 for server
null, unexpected error, closing socket connection and attempting
reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1078)
I am using SVN#1445420 with Java v1.7.0_09-b05 on Ubuntu inside of Eclipse.

If I comment out the run() call inside main() as I did before, I am
still seeing this:

java.io.IOException: Stream closed
at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:162)
at java.io.BufferedInputStream.read(BufferedInputStream.java:325)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.BufferedReader.fill(BufferedReader.java:154)
at java.io.BufferedReader.readLine(BufferedReader.java:317)
at java.io.BufferedReader.readLine(BufferedReader.java:382)
at org.apache.accumulo.test.MiniAccumuloCluster$LogWriter.run(MiniAccumuloCluster.java:88)
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB