Category Archives: Uncategorized

Oozie: CRON style scheduling in Oozie

Cron scheduling adds a lot of flexibility while scheduling jobs using the Oozie coordinator. Its bit tricky, but once you familiarize its going to benefit a lot. Here, just focus on the frequency part in your coordinator.xml <coordinator-app name=”oozie-coordinator” frequency=”0/10 … Continue reading

Posted in oozie, Uncategorized | Tagged , , | Leave a comment

Oozie: How to pass current date to Work Flow

Coordinator.xml <coordinator-app name=”oozie-coordinator” frequency=”1440″ start=”2017-10-06T15:00Z” end=”2099-09-19T13:00Z” timezone=”Canada/Eastern” xmlns=”uri:oozie:coordinator:0.1″> <action> <workflow> <app-path>${workflowxml}</app-path> <configuration> <property> <name>currentDate</name> <value>${coord:formatTime(coord:dateOffset(coord:nominalTime(), 0, ‘DAY’), “yyyyMMdd”)} </value> </property> </configuration> </workflow> </action> </coordinator-app> **Change “0” to -1 if you prefer PREVIOUS DATE Access currentDate in your workflow.xml and pass … Continue reading

Posted in oozie, Uncategorized | Tagged , , , , , | Leave a comment

Tips: Hive

Mask a Column Create a table, Insert values to it CREATE TABLE IF NOT EXISTS employee_test1 ( eid String, name String) ROW FORMAT DELIMITED FIELDS TERMINATED BY ‘\t’ LINES TERMINATED BY ‘\n’ STORED AS TEXTFILE; INSERT INTO TABLE employee_test1 VALUES … Continue reading

Posted in Tips, Uncategorized | Tagged , , , , , , | Leave a comment

Hadoop Cluster : Run Command on ALL Nodes

Its usually tough to run a command on all nodes of a hadoop cluster. Here is a script to do that.. run_command !/bin/bash TPUT=’tput -T xterm-color’ txtund=$(${TPUT} sgr 0 1) # Underline txtbld=$(${TPUT} bold) # Bold txtrst=$(${TPUT} sgr0) # Reset … Continue reading

Posted in Hadoop Cluster Administration, Hadoop Cluster Installation, Uncategorized, Unix | Leave a comment

Some Curl Commands for BigData

Writing to HDFS curl -i -X PUT -T $file -L “http://$namenode:50070/webhdfs/v1//$file?op=CREATE&$user&#8221; Reading from HDFS curl -i -X GET “http://$namenode:50070/webhdfs/v1//$file?op=OPEN&#8221; In a kerberized environment (Writing to HDFS) curl –negotiate -ku : -X PUT $file “http://:50070/webhdfs/v1//$file?op=CREATE&; OR curl -iku $userName:$password -L -T … Continue reading

Posted in Rest API, Uncategorized, webhdfs | Tagged , , , | Leave a comment

Truststore & Keystore

In SSL handshake, TrustStore is to verify credentials stores certificates from third party, Java application communicate or certificates signed by CA(certificate authorities like Verisign) which can be used to identify third party.   KeyStore is to provide credential. stores private … Continue reading

Posted in SSL, Uncategorized | Tagged , , | Leave a comment

Apache Storm

Architecture / Components Nimbus and Supervisor daemons are designed to be fail-fast (process self-destructs whenever any unexpected situation is encountered) stateless (all state is kept in Zookeeper or on disk) Nimbus and Supervisor daemons must be run under supervision using … Continue reading

Posted in Storm, Uncategorized | Tagged , | Leave a comment