镶木地板 - 不能用作镶木地板的水槽

时间:2015-07-28 08:25:20

标签: cascading parquet

我们正在尝试将文本文件转换为hfs位置的镶木地板文件。 但是在创建接收器和低于异常时面临一个问题。请协助。

CODE SNIPPET:

public static final字段INPUT_FIELDS =新字段(" sample_int"," sample_str"," sample_date"," sample_deci",&# 34; par_key&#34);
Scheme sinkScheme = new ParquetTupleScheme(INPUT_FIELDS); Tap sink = new Hfs(sinkScheme,parqOutputPath);

管道装配=新管道(" namecp"); assembly = new每个(assembly,new UnpackTupleFunction());

Flow flow = new Hadoop2MR1FlowConnector()。connect(" namecp",inData,sink,assembly);

例外:

线程中的异常" main" cascading.flow.planner.PlannerException:点击命名:' namecp',不能用作接收器:Hfs [" ParquetTupleScheme [[' sample_int',' sample_str& #39;,' sample_date',' sample_deci',' par_key'] - > [ALL]]"] [" / user / Cloudera的/ parquet_hive_cascade"]     at cascading.flow.planner.FlowPlanner.verifyTaps(FlowPlanner.java:379)     at cascading.flow.planner.FlowPlanner.verifyAllTaps(FlowPlanner.java:266)     at cascading.flow.planner.FlowPlanner.buildFlow(FlowPlanner.java:169)     at cascading.flow.FlowConnector.connect(FlowConnector.java:456)     at cascading.flow.FlowConnector.connect(FlowConnector.java:445)     at cascading.flow.FlowConnector.connect(FlowConnector.java:421)     at cascading.flow.FlowConnector.connect(FlowConnector.java:270)     at cascading.flow.FlowConnector.connect(FlowConnector.java:215)

=============================================== =============================

示例数据:

1 | ABC-XY | 14-12-25 | 12.34 | 20150101 2 | fbcxy | 14-12-05 | 2.4 | 20150201 3 | fbscxy | 14-11-05 | 0.422 | 20150301 3 | fbscxy | 14-11-15 | 2.0 | 20150301

4 | fbscxy | 14-11-30 | 42 | 20150401

0 个答案:

没有答案