[root@name01 Desktop]# hive
16/06/14 08:00:03 INFO Configuration.deprecation: mapred.input.dir.recursive is deprecated. Instead, use mapreduce.input.fileinputformat.input.dir.recursive
16/06/14 08:00:03 INFO Configuration.deprecation: mapred.max.split.size is deprecated. Instead, use mapreduce.input.fileinputformat.split.maxsize
16/06/14 08:00:03 INFO Configuration.deprecation: mapred.min.split.size is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize
16/06/14 08:00:03 INFO Configuration.deprecation: mapred.min.split.size.per.rack is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize.per.rack
16/06/14 08:00:03 INFO Configuration.deprecation: mapred.min.split.size.per.node is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize.per.node
16/06/14 08:00:03 INFO Configuration.deprecation: mapred.reduce.tasks is deprecated. Instead, use mapreduce.job.reduces
16/06/14 08:00:03 INFO Configuration.deprecation: mapred.reduce.tasks.speculative.execution is deprecated. Instead, use mapreduce.reduce.speculative
16/06/14 08:00:03 WARN conf.HiveConf: DEPRECATED: hive.metastore.ds.retry.* no longer has any effect. Use hive.hmshandler.retry.* instead
Logging initialized using configuration in file:/usr/local/hive/conf/hive-log4j.properties
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hive/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
hive> Lselect * from hivetest;
FAILED: SemanticException Unable to fetch table hivetest
hive> select * from hivetest;
FAILED: SemanticException Unable to fetch table hivetest
hive> show tables;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
hive> show tables;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
[root@name01 sbin]# start-dfs.sh
16/06/14 08:05:09 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [name01]
name01: namenode running as process 2761. Stop it first.
localhost: datanode running as process 2848. Stop it first.
Starting secondary namenodes [name01]
name01: secondarynamenode running as process 2965. Stop it first.
16/06/14 08:05:12 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
[root@name01 sbin]# jps
2848 DataNode
3107 ResourceManager
3203 NodeManager
2532 RunJar
4181 Jps
2965 SecondaryNameNode
2761 NameNode
[root@name01 sbin]# service mysqld status
mysqld is stopped
[root@name01 sbin]# service mysqld start
Starting mysqld: [ OK ]
[root@name01 sbin]#
hive> show tables;
OK
hivetest
Time taken: 4.642 seconds, Fetched: 1 row(s)
hive> select * from hivetest;
OK
Time taken: 1.72 seconds
hive>
hive 开机重启 mysql
最新推荐文章于 2024-08-01 04:36:19 发布