安装Hadoop之后,我安装了Pig。但是,我有以下问题: 当我试图经营猪时,事实证明它的日志中存在障碍:
coba@dewi-laptop:/home/dewi/Work2/pig-0.8.0-cdh3u0/bin$ ./pig
2011-11-23 10:15:20,865 [main] INFO org.apache.pig.Main - Logging error messages to: /home/dewi/Work2/pig-0.8.0-cdh3u0/bin/pig_1322018120859.log
2011-11-23 10:15:21,364 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: hdfs://localhost:54310
2011-11-23 10:15:21,715 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to map-reduce job tracker at: localhost:54311
grunt>
答案 0 :(得分:2)
上述日志不是障碍。这是猪告诉你它连接到本地机器上的jobtracker和namenode。如果这不是您想要的(即,您希望它连接到不同的namenode或jobtracker),请确保环境变量PIG_CLASSPATH包含存储Hadoop xml文件的目录。