# Uploading the Datasets into Hadoop HDFS
bigdata@bigdata/$ hadoop fs -mkdir pig
bigdata@bigdata/$ hadoop fs -ls
Found 4 items
drwxr-xr-x - bigdata supergroup 0 2014-07-07 13:01 /user/bigdata/backup
drwxr-xr-x - bigdata supergroup ...
Monday, August 25, 2014
Apache Hive Working Example
# Opening Hive Terminal
Open terminal and simply type "hive"
# Listing all the databases
hive> show databases;
OK
default
Time taken: 0.022 seconds, Fetched: 1 row(s)
# Creating a New Databases in Hive
hive> CREATE DATABASE employee;
OK
Time taken: 0.069 seconds
# Listing the created databases
hive>...
HBase : Unix/Shell Script File for Creating,Putting/Disabling/Droping tables and Inserting bulk load of datasets from Hadoop HDFS
#!/bin/bash
# Declaring Variables
table0="employee"
path=$(pwd);
# Creating a Employee table in HBase
echo "exists '$table0'" | hbase shell > log
cat log | grep "Table employee does exist"
if [ $? = 0 ];then
echo "************ table is already exists **********"
# Either...