Friday, July 31, 2015

OpenDaylight Summit 2015 and Santa Clara

Love this name tag from the OpenDaylight Summit
~~ Ready to return home after a very productive conference and unconference, in a few hours. Now it is time to get back to my regular life for a while, and focus on my projects.

This year was full of travels for me, with 11 (short and long) international travels so far (and 2 more upcoming). The best part of this trip was to meet many interesting people, listen to many awesome presentations, and present my project. Unlike the previous trips, I did not do any random walks this time. But will continue in the upcoming trips. :3 I am unpredictable in my travelling habits anyway. I just don't have any pattern. :D

Next year seems more interesting as well, with an array of travels and "migrations" already planned - Shenzhen 2016, Atlanta 2016, and Louvain 2016. Sometimes I suspect that I am becoming a gypsy. lol.

Saturday, July 25, 2015

Traveling light weight

Fresh water river in Andorra la Vella
I returned to Lisboa from Croatia after my summer internship a few hours ago. Now I leave home again with my suitcase, to the metro station. Going to the airport for my next flight to San Jose for the ODL Summit. I walk like a zombie - brain doesn't work; but  my legs move in the right direction. I surely lack sleep. Do I really need to do this? I ask myself. It happens to me at times - I overdo things to tire myself. But then, I say, "I will never remember these tiring moments spent in transit. But the good memories will last."
 
I used to travel heavy with lots of luggage. Eventually, I learned to travel light. I often avoid even taking the checked in luggage with me, so that I directly go to the border gates, as I already check in at home. By this I avoid the long queues at the luggage drop and further delay at the baggage claim belts. Sometimes I just go on a flight with a small backpack, which also happens to be my laptop bag. I carefully pack the bare minimum stuff with me. This helped travelling further. An ideal example was my travel to Andorra this year, just a day before the EMJD-DC Spring event in Barcelona. 

Since it was a Sunday, most of the shops were closed. I had a look at the books, written in Catalan, speaking the history of the Catalan region. Andorra is the only country which has Catalan as its national language. Andorra la Vella was pleasant, and felt like the hill country in Sri Lanka. I know that the winter will be different, with mountains covered in snow.

Monday, June 8, 2015

New Approaches to Enhance OS Security

The 5th presentation of NSOM module..

Friday, June 5, 2015

The 4th Summer in Europe..

Finally summer is here in Europe, once more. We had the EMJD-DC spring event in Barcelona. I was in Barcelona 31st May - 4th June. This was my second time to be in Barcelona. It is a beautiful city with lovely beaches along the yellow metro line. Last time it was in 2013 winter for the EMDC winter event. So much of deja vu. As with many other travels, this trip too was mostly spent inside the university, due to the scheduled presentations. However, I had the last day to enjoy the city and its beach.

The plants in my apartment have started to grow with little flowers. Long sunny and hot days. However, it is going to be another busy summer as usual.

Saturday, May 30, 2015

Configuring Drill with HDFS

Apache Drill can be used to query Hadoop and HDFS in a very efficient way. The steps are as below. Refer to the linked pages for each step.

1. Configure Hadoop 

There may be some errors encountered when executing Hadoop with Java 8 with the default configurations. Further, formatting the file system will fix any error from Hadoop.
  $ $HADOOP_HOME/bin/hdfs namenode -format


2. Start Hadoop NameNode daemon and DataNode daemon -
$ $HADOOP_HOME/sbin/start-dfs.sh
Starting namenodes on [localhost]
localhost: starting namenode, logging to /home/pradeeban/programs/hadoop-2.7.0/logs/hadoop-pradeeban-namenode-llovizna.out
localhost: starting datanode, logging to /home/pradeeban/programs/hadoop-2.7.0/logs/hadoop-pradeeban-datanode-llovizna.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /home/pradeeban/programs/hadoop-2.7.0/logs/hadoop-pradeeban-secondarynamenode-llovizna.out

Once you are done, stop the daemons with

$ $HADOOP_HOME/sbin/stop-dfs.sh

3. Browse the web interface for the name node - http://localhost:50070/

4. Configure Drill

5. Launch Drill in Embedded mode -
$ $DRILL_HOME/bin/drill-embedded 

6. Browse the web interface for Drill - http://localhost:8047/

7. Configure Hive

$ $HADOOP_HOME/bin/hadoop fs -mkdir       /tmp
$ $HADOOP_HOME/bin/hadoop fs -chmod g+w   /tmp
$ $HADOOP_HOME/bin/hadoop fs -mkdir       /user/
$ $HADOOP_HOME/bin/hadoop fs -mkdir       /user/hive
$ $HADOOP_HOME/bin/hadoop fs -mkdir       /user/hive/warehouse
$ $HADOOP_HOME/bin/hadoop fs -chmod g+w   /user/hive/warehouse

Configure Hive Metastore.
Configure with MySQL.

http://sanjivblogs.blogspot.pt/2014/12/install-and-configure-hive.html  

8. Run Hive Metastore and Hive
$ $HIVE_HOME/bin/hive --service metastore &

Start HiveServer2
$HIVE_HOME/bin/hiveserver2

Alternatively, Hive server1 can be started from 
$ $HIVE_HOME/bin/hive

If you encounter URISyntaxException, have a look at this.

9.  Configure and enable Storage Plugin for Hive in Drill
{
  "type": "hive",
  "enabled": true,
  "configProps": {
    "hive.metastore.uris": "thrift://localhost:9083",
    "hive.metastore.sasl.enabled": "false"
  }
}


10. Query Hive from Drill.
SELECT firstname,lastname FROM hive.`customers` 

11. This discusses configuring Drill with Mongo.