2018年7月26日木曜日

hiveにデータ投入時に、「SemanticException [Error 10062]: Need to specify partition columns because the destination table is partitioned」の対策

パーティションが切っているテーブルに、パーティションキーを指定しないと、表題のようなエラーになります。

解消方法として、以下のように、「partition」を明確に指定することです。
メタデータの先頭に移動
SET hive.exec.dynamic.partition.mode=nonstrict;
insert overwrite table tmp_xxx.test_log partition(id) select * from common.log where id = 15692 and date between '2018-06-22 00:00' and '2018-06-22 23:59';

2018年4月13日金曜日

php.iniファイルの場所を調べる

サーバのphp.iniファイルの場所を調べる方法、
1、まず、サーバにsshします
2、次のコマンドを実行「php -i | grep "Loaded Configuration File"

2018年4月9日月曜日

mac jmeterのインストール方法

以下のコマンドでインストール
 brew install jmeter --with-plugins
↑プラグインが不要な場合、「--with-plugins」をなしにする 
 
以下のコマンドでインストールされたjmeterを開く
 open /usr/local/bin/jmeter