~ディレクトリのすぐ下にある3つのubuntu 12.10インスタンス、1つのマスターと2つのスレーブのAmazon ec2でhadoop-1.0.4を使用しています。現在、start-all.sh と stop-all.sh は問題ありませんが、マスターまたはスレーブで jps を実行すると、何も出力されません。次に、hadoop の例をテストしました。
~/hadoop$ bin/hadoop jar hadoop-examples-1.0.4.jar pi 10 10000
それが示している
Exception in thread "main" java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(File.java:1879)
at org.apache.hadoop.util.RunJar.main(RunJar.java:115)
しかし、私は chmod 777 -R tmp を tmp フォルダにしました。
~/hadoop$ sudo bin/hadoop jar hadoop-examples-1.0.4.jar pi 10 10000
sudo を使用すると、生成されます
13/05/12 03:58:11 WARN conf.Configuration: DEPRECATED: hadoop-site.xml
found in the classpath. Usage of hadoop-site.xml is deprecated.
Instead use core-site.xml, mapred-site.xml and hdfs-site.xml to
override properties of core-default.xml, mapred-default.xml
and hdfs-default.xml respectively
Number of Maps = 10
Samples per Map = 10000
13/05/12 03:58:12 WARN fs.FileSystem: "54.235.101.85:50001" is a deprecated
filesystem name. Use "hdfs://54.235.101.85:50001/" instead.
13/05/12 03:58:13 INFO ipc.Client: Retrying connect to server:
hdmaster/54.235.101.85:50001. Already tried 0 time(s).
13/05/12 03:58:14 INFO ipc.Client: Retrying connect to server:
hdmaster/54.235.101.85:50001. Already tried 1 time(s).
13/05/12 03:58:15 INFO ipc.Client: Retrying connect to server:
hdmaster/54.235.101.85:50001. Already tried 2 time(s).
その後、接続に失敗しました。それで、問題は何ですか?サンプルを実行するために sudo を入れる必要がありますか? どうもありがとう。