We are trying to convert a text file into a parquet file in hfs location. But facing an issue in creating the sink and getting below exception. Please assist.
public static final Fields INPUT_FIELDS = new Fields("sample_int", "sample_str", "sample_date","sample_deci", "par_key");
Scheme sinkScheme = new ParquetTupleScheme(INPUT_FIELDS); Tap sink = new Hfs(sinkScheme, parqOutputPath);
Exception in thread "main" cascading.flow.planner.PlannerException: tap named: 'namecp', cannot be used as a sink: Hfs["ParquetTupleScheme[['sample_int', 'sample_str', '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)
============================================================================
--
You received this message because you are subscribed to the Google Groups "cascading-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cascading-use...@googlegroups.com.
To post to this group, send email to cascadi...@googlegroups.com.
Visit this group at http://groups.google.com/group/cascading-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/960cf4b3-1f8d-4ce5-8796-77bbf469f566%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.