我正在尝试为 hdinsight 创建一个简单的 map/reducer 作业,但我无法通过ASV://将本地 hdinsight hadoop 集群中的作业连接到本地 azure 存储模拟器
示例代码如下:
var hadoop = Hadoop.Connect();
HadoopJobConfiguration config = new HadoopJobConfiguration();
config.InputPath = @"asv://127.0.0.1:10000/devstoreaccount1/testcontainer/input";
config.OutputFolder = "asv://127.0.0.1:10000/devstoreaccount1/testcontainer/output";
hadoop.MapReduceJob.Execute<Mapper1>(config);
或者
var hadoop = Hadoop.Connect();
HadoopJobConfiguration config = new HadoopJobConfiguration();
config.InputPath = @"asv://testcontainer/input";
config.OutputFolder = "asv://testcontainer/output";
hadoop.MapReduceJob.Execute<Mapper1>(config);
其中testcontainer是本地模拟器的 blob 存储中的现有容器。运行此代码时,我得到一个StreamingException “进程失败('流式作业失败!')”
并在控制台输出中看到以下错误:
packageJobJar: [] [/C:/Hadoop/hadoop-1.1.0-SNAPSHOT/lib/hadoop-streaming.jar] C: \Users\user1\AppData\Local\Temp\1\streamjob6525516867576872971.jar tmpDir=null
13/08/26 12:30:51 INFO util.NativeCodeLoader: Loaded the native-hadoop library
13/08/26 12:30:51 WARN snappy.LoadSnappy: Snappy native library not loaded
13/08/26 12:30:51 INFO mapred.JobClient: Cleaning up the staging area hdfs://loc alhost:8020/hadoop/hdfs/tmp/mapred/staging/user1/.staging/job_201308221229_0010
13/08/26 12:30:51 ERROR security.UserGroupInformation: PriviledgedActionExceptio n as:user1 cause:org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: hdfs:/devstoreaccount1/testcontainer/input
13/08/26 12:30:51 ERROR streaming.StreamJob: Error Launching job : Input path do es not exist: hdfs:/devstoreaccount1/testcontainer/input
Streaming Command Failed!
有什么提示吗?