You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@fluo.apache.org by GitBox <gi...@apache.org> on 2017/11/30 16:12:34 UTC

[GitHub] keith-turner opened a new issue #973: MiniFluo fails to start when running from mvn exec

keith-turner opened a new issue #973: MiniFluo fails to start when running from mvn exec
URL: https://github.com/apache/fluo/issues/973
 
 
   When trying to use maven exec to start a 1.2.0-SNAPSHOT instance of mini fluo it fails with the following exeception.  I think what is happening is that the fluo jars are found on the classpath and then it tries to copy those to hdfs.  However there is no HDFS.  
   
   I am thinking a possible fix for this is to make the the new `fluo.dfs.root`  property not have a default of localhost.   Also make the copytojars code that uses the property do nothing if the property is not set.
   
   Could possibly throw an exception if `fluo.accumulo.jars` is set and `fluo.dfs.root` is not.  However when both are not set, then do nothing.
   
   ```
   java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:498)
       at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:294)
       at java.lang.Thread.run (Thread.java:748)
   Caused by: java.lang.IllegalStateException: java.net.ConnectException: Call From zbook/127.0.1.1 to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
       at org.apache.fluo.core.client.FluoAdminImpl.copyJarsToDfs (FluoAdminImpl.java:341)
       at org.apache.fluo.core.client.FluoAdminImpl.initialize (FluoAdminImpl.java:161)
       at mixer.MiniMixer.main (MiniMixer.java:41)
       at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:498)
       at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:294)
       at java.lang.Thread.run (Thread.java:748)
   Caused by: java.net.ConnectException: Call From zbook/127.0.1.1 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:62)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:45)
       at java.lang.reflect.Constructor.newInstance (Constructor.java:423)
       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:1473)
       at org.apache.hadoop.ipc.Client.call (Client.java:1400)
       at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke (ProtobufRpcEngine.java:232)
       at com.sun.proxy.$Proxy34.mkdirs (Unknown Source)
       at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.mkdirs (ClientNamenodeProtocolTranslatorPB.java:539)
       at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:498)
       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.$Proxy35.mkdirs (Unknown Source)
       at org.apache.hadoop.hdfs.DFSClient.primitiveMkdir (DFSClient.java:2742)
       at org.apache.hadoop.hdfs.DFSClient.mkdirs (DFSClient.java:2713)
       at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall (DistributedFileSystem.java:870)
       at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall (DistributedFileSystem.java:866)
       at org.apache.hadoop.fs.FileSystemLinkResolver.resolve (FileSystemLinkResolver.java:81)
       at org.apache.hadoop.hdfs.DistributedFileSystem.mkdirsInternal (DistributedFileSystem.java:866)
       at org.apache.hadoop.hdfs.DistributedFileSystem.mkdirs (DistributedFileSystem.java:859)
       at org.apache.hadoop.fs.FileSystem.mkdirs (FileSystem.java:1817)
       at org.apache.fluo.core.client.FluoAdminImpl.copyJarsToDfs (FluoAdminImpl.java:339)
       at org.apache.fluo.core.client.FluoAdminImpl.initialize (FluoAdminImpl.java:161)
       at mixer.MiniMixer.main (MiniMixer.java:41)
       at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:498)
       at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:294)
       at java.lang.Thread.run (Thread.java:748)
   Caused by: java.net.ConnectException: Connection refused
       at sun.nio.ch.SocketChannelImpl.checkConnect (Native Method)
       at sun.nio.ch.SocketChannelImpl.finishConnect (SocketChannelImpl.java:717)
       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:608)
       at org.apache.hadoop.ipc.Client$Connection.setupIOstreams (Client.java:706)
       at org.apache.hadoop.ipc.Client$Connection.access$2800 (Client.java:369)
       at org.apache.hadoop.ipc.Client.getConnection (Client.java:1522)
       at org.apache.hadoop.ipc.Client.call (Client.java:1439)
       at org.apache.hadoop.ipc.Client.call (Client.java:1400)
       at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke (ProtobufRpcEngine.java:232)
       at com.sun.proxy.$Proxy34.mkdirs (Unknown Source)
       at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.mkdirs (ClientNamenodeProtocolTranslatorPB.java:539)
       at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:498)
       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.$Proxy35.mkdirs (Unknown Source)
       at org.apache.hadoop.hdfs.DFSClient.primitiveMkdir (DFSClient.java:2742)
       at org.apache.hadoop.hdfs.DFSClient.mkdirs (DFSClient.java:2713)
       at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall (DistributedFileSystem.java:870)
       at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall (DistributedFileSystem.java:866)
       at org.apache.hadoop.fs.FileSystemLinkResolver.resolve (FileSystemLinkResolver.java:81)
       at org.apache.hadoop.hdfs.DistributedFileSystem.mkdirsInternal (DistributedFileSystem.java:866)
       at org.apache.hadoop.hdfs.DistributedFileSystem.mkdirs (DistributedFileSystem.java:859)
       at org.apache.hadoop.fs.FileSystem.mkdirs (FileSystem.java:1817)
       at org.apache.fluo.core.client.FluoAdminImpl.copyJarsToDfs (FluoAdminImpl.java:339)
       at org.apache.fluo.core.client.FluoAdminImpl.initialize (FluoAdminImpl.java:161)
       at mixer.MiniMixer.main (MiniMixer.java:41)
       at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:498)
       at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:294)
       at java.lang.Thread.run (Thread.java:748)
   
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services