Cloudera Manager、CDH 版本安装

Cloudera Manager、CDH 版本安装:

  • 在 vmware中安装已经集成各类工具包的Linux虚拟机。
  • 依次安装Hadoop的各生态组件:hdfs, hive, impala, oozie, solr, yarn,zookeeper,hue,spark  services

安装以后的结果如下:

Cloudera Manager、CDH 版本安装_第1张图片

Cloudera Manager、CDH 版本安装_第2张图片 

 Cloudera Manager、CDH 版本安装_第3张图片

 


hive  beeline 查询:
[training@elephant data]$ beeline -u jdbc:hive2://elephant:10000/default -n training 
scan complete in 19ms
Connecting to jdbc:hive2://elephant:10000/default
Connected to: Apache Hive (version 0.12.0-cdh5.0.0)
Driver: Hive JDBC (version 0.12.0-cdh5.0.0)
Transaction isolation: TRANSACTION_REPEATABLE_READ
-hiveconf (No such file or directory)
hive.aux.jars.path=file:/usr/lib/hive/lib/hive-hbase-handler-0.12.0-cdh5.0.0.jar,file:/usr/lib/hbase/hbase-hadoop2-compat.jar,file:/usr/lib/hbase/lib/htrace-core-2.01.jar,file:/usr/lib/hbase/lib/htrace-core.jar,file:/usr/lib/hbase/hbase-hadoop-compat.jar,file:/usr/lib/hbase/hbase-server.jar,file:/usr/lib/hbase/hbase-protocol.jar,file:/usr/lib/hbase/hbase-client.jar,file:/usr/lib/hbase/hbase-common.jar,file:/usr/share/java/mysql-connector-java.jar,file:/usr/share/cmf/lib/postgresql-9.0-801.jdbc4.jar (No such file or directory)
Beeline version 0.12.0-cdh5.0.0 by Apache Hive
0: jdbc:hive2://elephant:10000/default> SHOW TABLES;
+-----------+
| tab_name  |
+-----------+
+-----------+
No rows selected (1.849 seconds)
0: jdbc:hive2://elephant:10000/default> 




使用hive Beeline shell 
[training@elephant data]$  beeline -u jdbc:hive2://elephant:10000 -n training
scan complete in 7ms
Connecting to jdbc:hive2://elephant:10000
Connected to: Apache Hive (version 0.12.0-cdh5.0.0)
Driver: Hive JDBC (version 0.12.0-cdh5.0.0)
Transaction isolation: TRANSACTION_REPEATABLE_READ
-hiveconf (No such file or directory)
hive.aux.jars.path=file:/usr/lib/hive/lib/hive-hbase-handler-0.12.0-cdh5.0.0.jar,file:/usr/lib/hbase/hbase-hadoop2-compat.jar,file:/usr/lib/hbase/lib/htrace-core-2.01.jar,file:/usr/lib/hbase/lib/htrace-core.jar,file:/usr/lib/hbase/hbase-hadoop-compat.jar,file:/usr/lib/hbase/hbase-server.jar,file:/usr/lib/hbase/hbase-protocol.jar,file:/usr/lib/hbase/hbase-client.jar,file:/usr/lib/hbase/hbase-common.jar,file:/usr/share/java/mysql-connector-java.jar,file:/usr/share/cmf/lib/postgresql-9.0-801.jdbc4.jar (No such file or directory)
Beeline version 0.12.0-cdh5.0.0 by Apache Hive
......
0: jdbc:hive2://elephant:10000> SELECT COUNT(*) FROM movierating;
+----------+
|   _c0    |
+----------+
| 1000205  |
+----------+



[training@elephant data]$ impala-shell
Starting Impala Shell without Kerberos authentication
Connected to elephant:21000
Server version: impalad version cdh5-1.3.0 RELEASE (build 40e1b62cf0b97f666d084d9509bf9639c575068c)
Welcome to the Impala shell. Press TAB twice to see a list of available commands.

Copyright (c) 2012 Cloudera, Inc. All rights reserved.

(Shell build version: Impala Shell vcdh5-1.3.0 (40e1b62) built on Tue Mar 25 13:46:44 PDT 2014)
[elephant:21000] > CONNECT horse;
Connected to horse:21000
Server version: impalad version cdh5-1.3.0 RELEASE (build 40e1b62cf0b97f666d084d9509bf9639c575068c)
[horse:21000] > INVALIDATE METADATA;
Query: invalidate METADATA

Returned 0 row(s) in 1.74s
[horse:21000] > SELECT COUNT(*) FROM movierating;
Query: select COUNT(*) FROM movierating
+----------+
| count(*) |
+----------+
| 1000205  |
+----------+
Returned 1 row(s) in 1.72s
[horse:21000] > 




 

你可能感兴趣的:(AI,&,Big,Data案例实战课程)