One of the advantages of Bigtop is the ease of installation of the different Hadoop Components without having to hunt for a specific Hadoop Component distribution and matching it with a specific Hadoop version.
sudo apt-get install pig create a tab delimited text file using your favorite editor, 1 A 2 B 3 C |
$pig
grunt>A = load '/pigdata/PIGTESTA.txt' using PigStorage('\t');
grunt>dump A
2013-07-06 07:22:56,272 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher - Success!
2013-07-06 07:22:56,276 [main] WARN org.apache.hadoop.conf.Configuration - fs.default.name is deprecated. Instead, use fs.defaultFS2013-07-06 07:22:56,295 [main] INFO org.apache.pig.backend.hadoop.executionengine.util.MapRedUtil - Total input paths to process : 1
(1,A)
(2,B)
(3,C)
()
2013-07-06 07:22:56,295 [main] INFO org.apache.hadoop.mapreduce.lib.input.FileInputFormat - Total input paths to process : 12013-07-06 07:22:56,295 [main] INFO org.apache.pig.backend.hadoop.executionengine.util.MapRedUtil - Total input paths to process : 1
(1,A)((3,C)(
|
sudo apt-get install hbase\* |
sudo service hbase-master start hbase shell |
hbase(main):001:0> create 't2','f1','f2','f3' SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/lib/hbase/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-log4j12-1.4.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/lib/zookeeper/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 0 row(s) in 3.4390 seconds hbase(main):002:0> list TABLE t2 2 row(s) in 0.0220 seconds hbase(main):003:0> |
sudo apt-get install hive hive-server hive-metastore |
hadoop fs -mkdir /tmp hadoop fs -mkdir /user/hive/warehouse hadoop -chmod g+x /tmp hadoop -chmod g+x /user/hive/warehouse |
sudo mkdir /var/run/hive sudo mkdir /var/lock/subsys |
sudo /etc/init.d/hive-server start |
ubuntu@ip-10-101-53-136:~$ hive WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files. Hive history file=/tmp/ubuntu/hive_job_log_ubuntu_201203202331_281981807.txt hive> create table doh(id int); OK Time taken: 12.458 seconds hive> show tables; OK doh Time taken: 0.283 seconds hive> |
export HADOOP_HOME=/usr/lib/hadoop export HADOOP_CONF_DIR=$HADOOP_HOME/conf |
|
ubuntu@ip-10-224-109-199:/usr/share/doc/mahout/examples/bin$ ./cluster-reuters.sh |
|
Please select a number to choose the corresponding clustering algorithm |
|
~/whirr-0.7.1:bin/whirr launch-cluster --config recipes/hadoop-ec2.properties |
|
Unable to start the cluster. Terminating all nodes. |
dc@ip-10-70-18-203:~$ hadoop fs -ls / Found 3 items drwxr-xr-x - hadoop supergroup 0 2012-03-30 23:44 /hadoop drwxrwxrwx - hadoop supergroup 0 2012-03-30 23:44 /tmp drwxrwxrwx - hadoop supergroup 0 2012-03-30 23:44 /user |
bin/oozie-setup.sh -hadoop 1.0.1 ${HADOOP_HOME} -extjs ext-2.2.zip
|
sudo bin/oozie-setup.sh -hadoop 0.20.200 ${HADOOP_HOME} -extjs ext-2.2.zip
|
|
|
Zookeeper is installed as part of HBase. Add the zookeeper echo example
Install SQOOP using: [redhat@ip-10-28-189-235 ~]$ sudo yum install sqoop
*
You should see:
Loaded plugins: amazon-id, rhui-lb, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package sqoop.noarch 0:1.4.1-1.fc16 will be installed
---> Package sqoop-metastore.noarch 0:1.4.1-1.fc16 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================
Package Arch Version Repository Size
==============================================================================================
Installing:
sqoop noarch 1.4.1-1.fc16 bigtop-0.3.0-incubating 3.4 M
sqoop-metastore noarch 1.4.1-1.fc16 bigtop-0.3.0-incubating 4.9 k
Transaction Summary
==============================================================================================
Install 2 Package(s)
Total download size: 3.4 M
Installed size: 4.9 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): sqoop-1.4.1-1.fc16.noarch.rpm | 3.4 MB 00:01
(2/2): sqoop-metastore-1.4.1-1.fc16.noarch.rpm | 4.9 kB 00:00
----------------------------------------------------------------------------------------------
Total 2.0 MB/s | 3.4 MB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : sqoop-1.4.1-1.fc16.noarch 1/2
Installing : sqoop-metastore-1.4.1-1.fc16.noarch 2/2
Installed:
sqoop.noarch 0:1.4.1-1.fc16 sqoop-metastore.noarch 0:1.4.1-1.fc16
Complete!
Loaded plugins: amazon-id, rhui-lb, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package sqoop.noarch 0:1.4.1-1.fc16 will be installed
---> Package sqoop-metastore.noarch 0:1.4.1-1.fc16 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================
Package Arch Version Repository Size
==============================================================================================
Installing:
sqoop noarch 1.4.1-1.fc16 bigtop-0.3.0-incubating 3.4 M
sqoop-metastore noarch 1.4.1-1.fc16 bigtop-0.3.0-incubating 4.9 k
Transaction Summary
==============================================================================================
Install 2 Package(s)
Total download size: 3.4 M
Installed size: 4.9 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): sqoop-1.4.1-1.fc16.noarch.rpm | 3.4 MB 00:01
(2/2): sqoop-metastore-1.4.1-1.fc16.noarch.rpm | 4.9 kB 00:00
----------------------------------------------------------------------------------------------
Total 2.0 MB/s | 3.4 MB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : sqoop-1.4.1-1.fc16.noarch 1/2
Installing : sqoop-metastore-1.4.1-1.fc16.noarch 2/2
Installed:
sqoop.noarch 0:1.4.1-1.fc16 sqoop-metastore.noarch 0:1.4.1-1.fc16
Complete!
To test SQOOP is running run the CLI: