Error while running Part1 of Impatient project

18 views
Skip to first unread message

Philip Dogbey

unread,
Mar 25, 2015, 7:53:26 PM3/25/15
to cascadi...@googlegroups.com
I am brand new to Hadoop and trying to learn by following the impatient tutorial. When I run the app with the command below I got the exception that follows. Can somebody please tell me what I am doing wrong?

Thanks in advance. 

 hadoop jar ./build/libs/impatient.jar data/rain.txt output/rain

Exception in thread "main" cascading.flow.planner.PlannerException: could not build flow from assembly: [unable to read fields from tap: Hfs["TextLine[['line']->[ALL]]"]["hdfs://localhost:8020/user/philip.dogbey/data/rain.txt"]]

at cascading.flow.planner.FlowPlanner.handleExceptionDuringPlanning(FlowPlanner.java:578)

at cascading.flow.hadoop.planner.HadoopPlanner.buildFlow(HadoopPlanner.java:286)

at cascading.flow.hadoop.planner.HadoopPlanner.buildFlow(HadoopPlanner.java:80)

at cascading.flow.FlowConnector.connect(FlowConnector.java:459)

at impatient.Main.main(Main.java:63)

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: cascading.tap.TapException: unable to read fields from tap: Hfs["TextLine[['line']->[ALL]]"]["hdfs://localhost:8020/user/philip.dogbey/data/rain.txt"]

at cascading.scheme.util.DelimitedParser.parseFirstLine(DelimitedParser.java:319)

at cascading.scheme.hadoop.TextDelimited.retrieveSourceFields(TextDelimited.java:975)

at cascading.tap.Tap.retrieveSourceFields(Tap.java:366)

at cascading.flow.BaseFlow.retrieveSourceFields(BaseFlow.java:230)

at cascading.flow.BaseFlow.<init>(BaseFlow.java:196)

at cascading.flow.hadoop.HadoopFlow.<init>(HadoopFlow.java:98)

at cascading.flow.hadoop.planner.HadoopPlanner.createFlow(HadoopPlanner.java:231)

at cascading.flow.hadoop.planner.HadoopPlanner.buildFlow(HadoopPlanner.java:244)

... 9 more

Caused by: java.net.ConnectException: Call From philipdogbey.rlcorp.local/10.10.27.27 to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:791)

at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:731)

at org.apache.hadoop.ipc.Client.call(Client.java:1472)

at org.apache.hadoop.ipc.Client.call(Client.java:1399)

at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:232)

at com.sun.proxy.$Proxy14.getFileInfo(Unknown Source)

at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:752)

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.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:187)

at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)

at com.sun.proxy.$Proxy15.getFileInfo(Unknown Source)

at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1988)

at org.apache.hadoop.hdfs.DistributedFileSystem$18.doCall(DistributedFileSystem.java:1118)

at org.apache.hadoop.hdfs.DistributedFileSystem$18.doCall(DistributedFileSystem.java:1114)

at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)

at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1114)

at org.apache.hadoop.fs.Globber.getFileStatus(Globber.java:57)

at org.apache.hadoop.fs.Globber.glob(Globber.java:252)

at org.apache.hadoop.fs.FileSystem.globStatus(FileSystem.java:1625)

at cascading.tap.hadoop.Hfs.resourceExists(Hfs.java:588)

at cascading.tap.hadoop.Hfs.resourceExists(Hfs.java:109)

at cascading.scheme.util.DelimitedParser.parseFirstLine(DelimitedParser.java:294)

... 16 more

Caused by: java.net.ConnectException: Connection refused

at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)

at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)

at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)

at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:530)

at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:494)

at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:607)

at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:705)

at org.apache.hadoop.ipc.Client$Connection.access$2800(Client.java:368)

at org.apache.hadoop.ipc.Client.getConnection(Client.java:1521)

at org.apache.hadoop.ipc.Client.call(Client.java:1438)

Andre Kelpe

unread,
Mar 25, 2015, 7:58:20 PM3/25/15
to cascadi...@googlegroups.com
It looks like your configuration is pointing to the wrong sever. You
did not tell us what kind of setup you are using, but it looks like
your configuration expects a pseudo-distributed setup, which you
probably did not configure correctly. Please check your configuration
files and make sure you started the services on the right servers.

- Andre
> --
> You received this message because you are subscribed to the Google Groups
> "cascading-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cascading-use...@googlegroups.com.
> To post to this group, send email to cascadi...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cascading-user.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/cascading-user/eb1167c0-2a65-4250-87c1-af531749cec7%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
André Kelpe
an...@concurrentinc.com
http://concurrentinc.com
Reply all
Reply to author
Forward
0 new messages