posted @ 2016-02-27 10:13 ggzone 阅读(102) 评论(0) 推荐(0) 编辑
摘要:
批量生成#!/usr/bin/env pythonimport MySQLdbimport datetimeimport timeimport os#file pathFILEPATH='/tmp'#source databaseHOST='11.143.6... 阅读全文
摘要:
刷新impala元信息impala-shell -q 'invalidate metadata' -i hslave1impala-shell -q 'select count(*) from player' -i hslave1 -d db_1其中hsla... 阅读全文
posted @ 2016-02-27 10:06 ggzone 阅读(307) 评论(0) 推荐(0) 编辑
摘要:
刷新impala元信息impala-shell -q 'invalidate metadata' -i hslave1impala-shell -q 'select count(*) from player' -i hslave1 -d db_1其中hslave1是deamon进程... 阅读全文
posted @ 2016-02-27 10:05 ggzone 阅读(787) 评论(0) 推荐(0) 编辑
摘要:
#!/bin/bash#set -xDB=$1#获取hive表定义ret=$(hive -e 'use ${DB};show tables;'|grep -v _es|grep -v _hb|grep -v importinfo)for tem in $ret;do hive... 阅读全文
posted @ 2016-02-27 10:03 ggzone 阅读(833) 评论(0) 推荐(0) 编辑
摘要:
#!/bin/bash#set -xDB=$1#获取hive表定义ret=$(hive -e 'use ${DB};show tables;'|grep -v _es|grep -v _hb|grep -v importinfo)for tem in $re... 阅读全文
posted @ 2016-02-27 10:03 ggzone 阅读(181) 评论(0) 推荐(0) 编辑
摘要:
修改配置文件:vi /etc/sqoop/conf/sqoop-site.xml sqoop.metastore.client.record.password true If true, allow saved passwords in the metastore... 阅读全文
posted @ 2016-02-27 09:59 ggzone 阅读(506) 评论(0) 推荐(0) 编辑
摘要:
修改配置文件:vi /etc/sqoop/conf/sqoop-site.xml sqoop.metastore.client.record.password true If true, allow saved passwords in t... 阅读全文
posted @ 2016-02-27 09:59 ggzone 阅读(101) 评论(0) 推荐(0) 编辑
摘要:
下载所需jar包:http://www.cloudera.com/downloads/connectors/impala/jdbc/2-5-28.html 选择使用impalajdbc41版本import java.sql.Connection;import... 阅读全文
posted @ 2016-02-27 09:47 ggzone 阅读(254) 评论(0) 推荐(0) 编辑