我想连接到hdfs(在localhost中),我有一个错误:
调用从despubuntu-ThinkPad-E420/127.0.1.1到localhost:54310在连接异常时失败:java.net.ConnectException:Connection refused; 有关更多详细信息,请参阅:http: //wiki.apache.org/hadoop/ConnectionRefused
我按照其他帖子中的所有步骤,但我没有解决我的问题.我使用hadoop 2.7,这是配置:
核心的site.xml
<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>/home/despubuntu/hadoop/name/data</value>
</property>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:54310</value>
</property>
</configuration>
Run Code Online (Sandbox Code Playgroud)
HDFS-site.xml中
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>
Run Code Online (Sandbox Code Playgroud)
我输入/ usr/local/hadoop/bin/hdfs namenode -format和/usr/local/hadoop/sbin/start-all.sh
但是当我输入"jps"时,结果是:
10650 Jps
4162 Main
5255 NailgunRunner
20831 Launcher
Run Code Online (Sandbox Code Playgroud)
我需要帮助...
我在一个sbt项目中工作,我正在使用库play-ws.
但我的应用程序不播放框架.
所以,当我运行mi Job时,我有这个错误:
com.typesafe.config.ConfigException $ Missing:找不到关键'play'的配置设置
com.typesafe.config.ConfigException $ Missing:在com.typesafe.config.impl.SimpleConfig.find的com.typesafe.config.impl.SimpleConfig.findKey(SimpleConfig.java:124)中找不到键'play'的配置设置. (SimpleConfig.java:145)位于com.typesafeafe的com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:159)的com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:164). config.impl.SimpleConfig.getObject(SimpleConfig.java:218)at com.typesafe.config.impl.SimpleConfig.getConfig(SimpleConfig.java:224)at com.typesafe.config.impl.SimpleConfig.getConfig(SimpleConfig.java: 33)在play.core.Invoker $$ anon $ 1.play $ core $ Invoker $$ anon $$ loadActorConfig(Invoker.scala:35)at play.core.Invoker $$ anon $ 1 $$ anonfun $ 3.apply(Invoker. scala:23)at play.core.Invoker $$ anon $ 1 $$ anonfun $ 3.apply(Invoker.scala:21)at scala.Option.getOrElse(Option.scala:120)at play.core.Invoker $$ anon $ 1 .create(Invoker.scala:21)at play.core.ClosableLazy.get(ClosableLazy.scala:51)at play.core.Invoker $ .system(Invoker.scala):40)at play.core.Invoker $ .executionContext(Invoker.scala:41)at play.api.libs.concurrent.Execution $ .defaultContext(Execution.scala:15)at play.api.libs.concurrent.Execution $在play.api.libs.ws.ning.NingWSRequest $$ anon $ 2.onBodyPartReceived(NingWS.scala:322)上隐含$ .defaultContext(Execution.scala:12)在com.ning中找不到关键字'play'的配置设置. http.client.providers.netty.NettyAsyncHttpProvider.updateBodyAndInterrupt(NettyAsyncHttpProvider.java:1568)
at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.access $ 2900(NettyAsyncHttpProvider.java:161)at com.ning.http.client.providers.netty.NettyAsyncHttpProvider $ HttpProtocol.handle(NettyAsyncHttpProvider.java:2233)at at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.messageReceived(NettyAsyncHttpProvider.java:1227)位于org.jboss.netty的org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:142). …