打赏
摘要: 创建一个MySQL用户,并设置可以远程访问 解决方法:1、改表法: 可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 “mysql” 数据库里的 “user” 表里的 “host” 项,从“localhost”改称“%” x 阅读全文
posted @ 2016-12-01 12:44 大数据和AI躺过的坑 阅读(575) 评论(0) 推荐(0)
摘要: hive与环境的交互,算是一个小知识点,但掌握不菲! 如何在hive里,也达到这样呢? 不需要这样啦,因为,hive是建立在hadoop之上,启动hive,相当于,就是,hadoop jar ** hive > dfs -ls /; 可以看看这篇,hive与依赖环境的交互 阅读全文
posted @ 2016-12-01 10:48 大数据和AI躺过的坑 阅读(735) 评论(0) 推荐(0)
摘要: 相当一部分人,容易忽略hive脚本,其实,这在生产环境里,是非常重要的! $ hive -e "show tables" $ hive -e "show tables " >> aa $ hive -e "show tables " > aa $ hive -S -e "show tables" > 阅读全文
posted @ 2016-12-01 10:01 大数据和AI躺过的坑 阅读(795) 评论(0) 推荐(0)
摘要: 这个小知识点,看似简单,用处极大。 $ hive --hiveconf hive.cli.print.current.db=true $ hive --hiveconf hive.cli.print.header=true hive参数的使用 hive > create table t5(name 阅读全文
posted @ 2016-12-01 09:40 大数据和AI躺过的坑 阅读(3198) 评论(0) 推荐(0)