Connection Error in Apache Pig

前端 未结 4 1891
后悔当初
后悔当初 2020-12-05 19:12

I am running Apache Pig .11.1 with Hadoop 2.0.5.

Most simple jobs that I run in Pig work perfectly fine.

However, whenever I try to use GROUP BY on a large d

相关标签:
4条回答
  • 2020-12-05 19:41

    Yes the problem was that the job history server was not running.

    All we had to do to fix this problem was enter this command into the command prompt:

    mr-jobhistory-daemon.sh start historyserver
    

    This command starts up the job history server. Now if we enter 'jps', we can see that the JobHistoryServer is running and my Pig jobs no longer waste time trying to connect to the server.

    0 讨论(0)
  • 2020-12-05 19:46

    I think, this problem is related to hadoop mapred-site configuration issue. History Server runs default in localhost, so you need to add your configured host.

    <property>
     <name>mapreduce.jobhistory.address</name>
     <value>host:port</value>
    </property>
    

    then fire this command -

    mr-jobhistory-daemon.sh start historyserver
    
    0 讨论(0)
  • 2020-12-05 20:07

    I am using Hadoop 2.6.0, so I had to do

    $ mr-jobhistory-daemon.sh --config /usr/local/hadoop/etc start historyserver
    

    where, /usr/local/hadoop/etc is my HADOOP_CONF_DIR.

    0 讨论(0)
  • 2020-12-05 20:08

    I am using Hadoop 2.2.0. This problem was due to The History server was not running. I had to start the history server. I used following command to start history server:

    [root@localhost ~]$ /usr/lib/hadoop-2.2.0/sbin/mr-jobhistory-daemon.sh start historyserver

    0 讨论(0)
提交回复
热议问题