概述
1.安装hadoop(1.0以上)
2.安装hive安装(0.9.0以上版本)
4.当然你还得安装jdk
4. mysql,同时准备个可访问的账号,这里采用root,最好配上远程访问权限。
修改hive下的conf文件夹中将hive-default.xml.template 复制并改名成hive-site.xml
这里是我的文件
<property>
<wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"><name>hive.metastore.local</name></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"><value>true</value></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></property></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"><property></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"><name>javax.jdo.option.ConnectionURL</name></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"><value></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><span style="background-color:rgb(255,0,0)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px">jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist</span></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="background-color:rgb(255,0,0)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px">=true</span></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></value></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></property></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"><property></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"><name>javax.jdo.option.ConnectionDriverName</name></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><span style="background-color:rgb(255,0,0)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px"><value>com.mysql.jdbc.Driver</value></span></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></property></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"><property></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"><name>javax.jdo.option.ConnectionUserName</name></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><span style="background-color:rgb(255,0,0)"><span style="color:#000000"><span style="font-family:simsun; font-size:14px; text-align:left; line-height:21px"><value>Username</value><!-- In my case UserName is hadoop--></span></span></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></property></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"><property></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"><name>javax.jdo.option.ConnectionPassword</name></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><wbr style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></span><span style="background-color:rgb(255,0,0)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px"><value>UserPassword</value><!-- In my case password is hadoop--></span></span><br style="text-align:left; line-height:21px; background-color:rgb(234,247,253); font-family:simsun; color:rgb(70,70,70); font-size:14px"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(234,247,253)"></property></span></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
其中标红的都是需要修改的,并改成自己的设置,同时将mysql的jdbc驱动拷贝到hive的lib目录下,然后启动hive看到如下界面
- WARNING:org.apache.hadoop.metrics.jvm.EventCounterisdeprecated.Pleaseuseorg.apache.hadoop.log.metrics.EventCounterinallthelog4j.propertiesfiles.
- Logginginitializedusingconfigurationinjar:file:/usr/local/hadoop/hive/lib/hive-common-0.9.0.jar!/hive-log4j.properties
- Hivehistoryfile=/tmp/root/hive_job_log_root_201206141444_1788273672.txt
- hive>
最后
以上就是热情白开水为你收集整理的配置Hive,采用mysql存储metadata的全部内容,希望文章能够帮你解决配置Hive,采用mysql存储metadata所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复