title: Write to HDFS/Hive using NiFi
body: <p>I'm using Nifi 1.6.0.</p>
  
  <p>I'm trying to write to HDFS and to Hive (cloudera) with nifi.</p>
  
  <ol>
  <li>On "PutHDFS" I'm configure the "Hadoop Confiugration Resources" with hdfs-site.xml, core-site.xml files, set the directories and when I'm trying to Start it I got the following error: </li>
  </ol>
  
  <blockquote>
    <p>"Failed to properly initialize processor, If still shcedule to run,
    NIFI will attempt to initalize and run the Processor again after the
    'Administrative Yield Duration' has elapsed. Failure is due to
    java.lang.reflect.InvocationTargetException:
    java.lang.reflect.InvicationTargetException"</p>
  </blockquote>
  
  <ol start="2">
  <li>On "PutHiveStreaming" I'm configure the "Hive Metastore URI" with
  thrift://..., the database and the table name and on "Hadoop
  Confiugration Resources" I'm put the Hive-site.xml location and when
  I'm trying to Start it I got the following error:</li>
  </ol>
  
  <blockquote>
    <p>"Hive streaming connect/write error, flow file will be penalized and routed to retry. 
    org.apache.nifi.util.hive.HiveWritter$ConnectFailure: Failed connectiong to EndPoint {metaStoreUri='thrift://myserver:9083', database='mydbname', table='mytablename', partitionVals=[]}:".</p>
  </blockquote>
  
  <p>How can I solve the errors?</p>
  
  <p>Thanks.</p>