Monday 26 May 2014

CASSANDRA + PIG integration


1.       Basic steps to make it work are
·         Set aall variables like this
o    for jar in $CASSANDRA_HOME/lib/*.jar; do CLASSPATH=$CLASSPATH:$jar; done;
o    export PIG_CLASSPATH=$PIG_CLASSPATH:$CLASSPATH;
o    export PIG_OPTS="$PIG_OPTS -Dudf.import.list=org.apache.cassandra.hadoop.pig";
o    export PIG_INITIAL_ADDRESS=localhost;
o    export PIG_RPC_PORT=9160;
o    export PIG_PARTITIONER=org.apache.cassandra.dht.RandomPartitioner;
o    pig
·         Run Pig –x local
o   Run  script to connect to Cassandra using cqlstorage().
o   STORE data_to_insert INTO 'cql://myschema/example?output_query=update+example+set+value1++%3D+%3F' USING CqlStorage(); - ENCODED
o   STORE data_to_insert INTO 'cql://myschema/example?output_query=update example set value1 @ #,value2 @ #' USING CqlStorage();  -UN ENCODED.


1 comment:

  1. I think, and it feels through all the articles, that you have mastered your subject from end to end.

    voyance Email

    ReplyDelete

Angular Tutorial (Update to Angular 7)

As Angular 7 has just been released a few days ago. This tutorial is updated to show you how to create an Angular 7 project and the new fe...