I have a simple pig script which reads data from vertica and try to write to other vertica table. I am able to read the data but when it tries to write, it is giving the following exception. It is happening for both local and map reduce mode.
2013-10-22 10:59:20,724 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MultiQueryOptimizer - MR plan size before optimization: 12013-10-22 10:59:20,724 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MultiQueryOptimizer - MR plan size after optimization: 12013-10-22 10:59:20,776 [main] INFO org.apache.pig.tools.pigstats.ScriptState - Pig script settings are added to the job2013-10-22 10:59:20,792 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler - mapred.job.reduce.markreset.buffer.percent is not set, set to default 0.32013-10-22 10:59:20,794 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler - creating jar file Job2760076736579640824.jar2013-10-22 10:59:24,248 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler - jar file Job2760076736579640824.jar created2013-10-22 10:59:24,268 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler - Setting up single store job2013-10-22 10:59:24,270 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 0: URISyntaxException:Output Path URI is malformed:null
-----pig script
REGISTER '/opt/mapr/pig/pig-0.10.0/lib/vertica-jdk5-6.1.2-0.jar';
REGISTER '/opt/mapr/pig/pig-0.10.0/lib/pig-vertica.jar';
REGISTER 'hadoop-vertica.jar';
A = LOAD 'sql://{select * from cg.campaign}' USING com.vertica.pig.VerticaLoader('XXX','XXX','5433', 'XX','XXX');
B = foreach A generate (int)1 as CAMPAIGN_KEY:int ;
STORE B INTO '{outTable(CAMPAIGN_KEY int)}' USING com.vertica.pig.VerticaStorer('XXX','XXX','5433', 'XX','XXX');
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.