hadoop - vertica jar -


i trying transfer data vertica hive. according manual following should set input format:

-inputformat com.vertica.hadoop.deprecated.verticastreaminginput  

but hadoop-vertica jar has org.apache.hadoop.vertica.verticastreaminginput class , not above.

so throwing me following exception:

exception in thread "main" java.lang.runtimeexception:   class org.apache.hadoop.vertica.verticastreaminginput not   org.apache.hadoop.mapred.inputformat 

the full command is:

$hadoop_home/bin/hadoop jar $hadoop_home/contrib/streaming/hadoop-streaming-*.jar \   -libjars $hadoop_home/lib/hadoop-vertica.jar \    -dmapred.vertica.hostnames=verticahost \   -dmapred.vertica.database=exampledb \   -dmapred.vertica.username=exampleuser \   -dmapred.vertica.password=password123 \   -dmapred.vertica.port=5433 \   -dmapred.vertica.input.query="select * alltypes order key" \    -dmapred.vertica.input.delimiter=, \    -dmapred.map.tasks=1 \    -inputformat com.vertica.hadoop.deprecated.verticastreaminginput \    -input /tmp/input -output /tmp/output -reducer /bin/cat -mapper /bin/cat 

hive cdh-4.4.0-1.cdh4.4.0.p0.39/ environment , vertica 7.1.

if have wrong hadoop-vertica jar, can correct one? if that's not problem, doing wrong?

so com.vertica.hadoop.deprecated.verticastreaminginput class come from? got installing vertica connector.(page 9 , step 5) https://my.vertica.com/docs/7.0.x/pdf/hp_vertica_7.0.x_hadoopintegration.pdf

i downloaded hadoop connector mapreduce the downloads page on my.vertica.com. took 2.0 version (which supports cdh 4), since that's hadoop version said you're using.

i looked in hadoop-vertica.jar file in downloaded file (yarn-vertica_1.6.0.zip) , has class file in correct place (com.vertica.hadoop.deprecated). zip file includes source, can inspect it.

i can't tell org.apache.hadoop.vertica.verticastreaminginput coming from, downloading fresh copy of connector should fix problem. make sure download jdbc driver , other java configuration described in documentation.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -