Monthly Archives: July 2013

Catch ‘uncaughtException’ error in your mocha test

This isn't the first time I faced this situation. Today, I finally found the time and energy to look for a solution. In your mocha test, let's say you need to test an expected "uncaughtException" event, the Node.js technique to catch the uncatchable. Easy, just register an "uncaughtException" listener to the process event emitter. Well, [...]

By | 2017-11-21T19:54:26+00:00 July 27th, 2013|Categories: Hack|0 Comments

Oracle to Apache Hive with the Oracle SQL Connector

In a previous article published last week, I introduced the choices available to connect Oracle and Hadoop. In a follow up article, I covered the Oracle SQL Connector, its installation and integration with Apache Hadoop and more specifically how to declare a file present inside HDFS, the Hadoop filesystem, as a database table inside the [...]

By | 2017-11-21T19:51:34+00:00 July 27th, 2013|Categories: Big Data|2 Comments

Crawl you website including login form with Phantomjs

With PhantomJS, we start a headless WebKit and pilot it with our own scripts. Said differently, we write a script in JavaScript or CoffeeScript which controls an Internet browser and manipulates the webpage loaded inside. In the past, I've used a similar solution called Selenium. PhantomJS is much faster, it doesn't start a graphical browser [...]

By | 2017-11-21T20:07:20+00:00 July 27th, 2013|Categories: Hack|0 Comments

Kerberos and delegation tokens security with WebHDFS

WebHDFS is an HTTP Rest server bundle with the latest version of Hadoop. What interest me on this article is to dig into security with the Kerberos and delegation tokens functionalities. I will cover its usages from the command line and a programming language perspective. Don't crawl the web looking for a command to start [...]

By | 2017-11-21T20:14:56+00:00 July 25th, 2013|Categories: Big Data|0 Comments

Remote connection with SSH

While teaching big data and Hadoop, a student ask me about SSH and how to use. I’ll discuss about the protocol and the tools to benefit from it. Lately, I’ve been supervising the deployment of [Hadoop] clusters and its core components including [Kerberos] and [LDAP] servers from a single host to a full clusters. SSH is [...]

By | 2017-11-21T20:14:45+00:00 July 24th, 2013|Categories: Hack|0 Comments

Apache Hive Essentials How-to by Darren Lee

Recently, I've been ask to review a new book on Apache Hive called "Apache Hive Essentials How-to" written by Darren Lee and published by Packt Publishing. To say it short, I sincerely recommend it. I focused here on what I liked the most and the things I would have personnaly liked to read about. Looking [...]

By | 2017-11-21T20:14:08+00:00 July 23rd, 2013|Categories: Big Data|0 Comments

Splitting HDFS file into multiple hive tables

I am going to show how to split a file store as CSV inside HDFS into multiple Hive tables based on the content of each record. The context is simple. We are using Flume to collect logs from all over our datacenter through syslog. The stream is dumped into HDFS files partitioned by minute. Oozie [...]

By | 2017-11-21T20:14:01+00:00 July 15th, 2013|Categories: Big Data|0 Comments

Options to connect and integrate Hadoop with Oracle

I will list the different tools and libraries available to us developers in order to integrate Oracle and Hadoop. The Oracle SQL Connector for HDFS described below is covered in a follow up article with more details. To summarize, we have Sqoop originally from Cloudera and now part of Apache, a Sqoop plugin from MapQuest [...]

By | 2017-11-21T20:13:53+00:00 July 15th, 2013|Categories: Big Data|0 Comments

Testing the Oracle SQL Connector for Hadoop HDFS

Using Oracle SQL Connector for HDFS, you can use Oracle Database to access and analyze data residing in HDFS files or a Hive table. You can also query and join data in HDFS or a Hive table with other database-resident data. If required, you can also load data into the database using SQL. For an [...]

By | 2017-11-21T20:13:43+00:00 July 15th, 2013|Categories: Big Data|0 Comments