2017-03-02 81 views
0

我已經下載了Spark 2.1.0和Apache Zeppelin 0.7.0。我編輯了我的Spark,Java和Winutils的環境變量(因爲我使用的是Windows 10)。我編輯了zeppelin-env.sh和zeppelin-site.xml來導出我的JAVA_HOME和SPARK_HOME。我編輯了zeppelin-site.xml來更改端口號,因爲8080已被使用。我以管理員身份打開命令行,更改爲zeppelin-0.7.0-bin-all目錄並運行命令bin \ zeppelin.cmd。我打開瀏覽器並導航到localhost:8090。 Zeppelin打開,右上角的綠燈顯示暗示我已連接到服務器。一旦我運行「加載數據到表」教程我收到一個錯誤:拒絕連接:在運行Apache Zeppelin時連接。

java.net.ConnectException: Connection refused: connect 
    at java.net.DualStackPlainSocketImpl.connect0(Native Method) 
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) 
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) 
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) 
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) 
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) 
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) 
    at java.net.Socket.connect(Socket.java:589) 
    at org.apache.thrift.transport.TSocket.open(TSocket.java:182) 
    at org.apache.zeppelin.interpreter.remote.ClientFactory.create(ClientFactory.java:51) 
    at org.apache.zeppelin.interpreter.remote.ClientFactory.create(ClientFactory.java:37) 
    at org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:60) 
    at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:861) 
    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435) 
    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363) 
    at org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcess.getClient(RemoteInterpreterProcess.java:90) 
    at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.init(RemoteInterpreter.java:209) 
    at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.getFormType(RemoteInterpreter.java:375) 
    at org.apache.zeppelin.interpreter.LazyOpenInterpreter.getFormType(LazyOpenInterpreter.java:105) 
    at org.apache.zeppelin.notebook.Paragraph.jobRun(Paragraph.java:365) 
    at org.apache.zeppelin.scheduler.Job.run(Job.java:175) 
    at org.apache.zeppelin.scheduler.RemoteScheduler$JobRunner.run(RemoteScheduler.java:329) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) 
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
    at java.lang.Thread.run(Thread.java:745) 

日誌文件夾中沒有可用的日誌。一切都打印在命令行中。 %md解釋器的工作原理是「歡迎使用Zeppelin」的代碼在我運行後可以正常工作。

我試着在issues.apache.org上根據ZEPPELIN_305和ZEPPELIN-449改變內存。我試圖關閉Windows防火牆。我卸載並重新安裝,以確保它不是我自己造成的錯誤,但似乎沒有任何工作。

有沒有人有類似的問題?任何幫助將非常感激。

回答

0

你的問題可能在編輯錯誤的配置文件。既然你在Windows 10上,你想編輯zeppelin-env.cmd(而不是用於Linux的zeppelin-env.sh)。請參閱Zeppelin安裝指南的link