简体   繁体   English

Hadoop安装错误

[英]Error in Hadoop installation

I am trying to install Hadoop on fedora machine by seeing here 我正在尝试通过查看此处在fedora计算机上安装Hadoop

  1. Installed java (and verified whether java exists with java -version ) and it exists 安装了Java(并通过java -version验证了java -version是否存在)并且存在
  2. I had ssh installed(since it is linux) 我已经安装了ssh(因为它是linux)
  3. Downloaded latest version hadoop 1.0.4 from here 这里下载最新版本的hadoop 1.0.4

I have followed the process shown in installation tutorial(link given above) as below 我遵循了安装教程(上面给出的链接)中所示的过程,如下所示

$ mkdir input 
$ cp conf/*.xml input 
$ bin/hadoop jar hadoop-examples.1.0.4.jar grep input output 'dfs[a-z.]+' 

Then i had got the following error, which i am unable to understand 然后我遇到了以下错误,我无法理解

sh-4.2$ bin/hadoop jar hadoop-examples-1.0.4.jar grep input output 'dfs[a-z.]+'
12/10/31 16:14:35 INFO util.NativeCodeLoader: Loaded the native-hadoop library
12/10/31 16:14:35 WARN snappy.LoadSnappy: Snappy native library not loaded
12/10/31 16:14:35 INFO mapred.FileInputFormat: Total input paths to process : 8
12/10/31 16:14:35 INFO mapred.JobClient: Cleaning up the staging area file:/tmp/hadoop-thomas/mapred/staging/shivakrishnab-857393825/.staging/job_local_0001
12/10/31 16:14:35 ERROR security.UserGroupInformation: PriviledgedActionException as:thomas cause:java.io.IOException: Not a file: file:/home/local/thomas/Hadoop/hadoop-1.0.4/input/conf
java.io.IOException: Not a file: file:/home/local/thomas/Hadoop/hadoop-1.0.4/input/conf
    at org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:215)
    at org.apache.hadoop.mapred.JobClient.writeOldSplits(JobClient.java:989)
    at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:981)
    at org.apache.hadoop.mapred.JobClient.access$600(JobClient.java:174)
    at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:897)
    at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:850)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:416)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121)
    at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:850)
    at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:824)
    at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1261)
    at org.apache.hadoop.examples.Grep.run(Grep.java:69)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.hadoop.examples.Grep.main(Grep.java:93)
    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:616)
    at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
    at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
    at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:64)
    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:616)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:156)

Can anyone let me know whats wrong with my machine/or code, what to do to avoid this error ? 谁能让我知道我的机器/代码有什么问题,如何避免该错误?

This might be related to JVM and there is known issue regarding file permission in Hadoop(Some Versions).. so check this link : 这可能与JVM有关,并且在Hadoop(某些版本)中存在有关文件权限的已知问题。因此,请检查以下链接:

       https://issues.apache.org/jira/browse/HADOOP-7682

Hope this helps 希望这可以帮助

first of all, ssh preinstalled doesn't mean it's configured. 首先,预先安装ssh并不意味着它已配置。 you need both ssh and sshd and a keypair. 您需要ssh和sshd以及一个密钥对。 it should be passwordless, 'preferably'.just make sure that you are able to ssh to host without any error.also, make sure that all the hadoop daemons are running fine.it would be better if we could have a look at your error logs. 它应该是无密码的,``最好''。只需确保您能够ssh托管而没有任何错误。此外,请确保所有hadoop守护进程都运行良好。如果我们可以看看您的错误会更好日志。 i have written the complete procedure to configure hadoop here , in case you need any help. 如果您需要任何帮助,我已经在此处编写了配置hadoop的完整过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM