24th of July 2011
 

Harはcygwinでは。。

hiveでのharフォーマットは、(cygwinでは)使えなさそう。

$ cat har.txt
set hive.archive.enabled=true;
set hive.archive.har.parentdir.settable=true;

ALTER TABLE src2 ARCHIVE PARTITION(ds='2008-04-08',hr='12');

$ ./hive -f har.txt
Hive history file=/tmp/00962724/hive_job_log_00962724_201107251104_891719630.txt
Creating data.har for hdfs://localhost:9000/user/hive/warehouse/src2/ds=2008-04-08/hr=12
in hdfs://localhost:9000/tmp/hive-00962724/hive_2011-07-25_11-04-18_218_4413637967615998559/-ext-10000/partlevel
Please wait... (this may take a while)
FAILED: Error in metadata: java.lang.NullPointerException
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

$

やっぱり、hadoopコマンドでも動かない。

00962724@WK0306 ~/hadoop-0.20.2/bin
$ ./hadoop archive -archiveName foo.har -p /tmp/har /tmp
Exception in archives
null

00962724@WK0306 ~/hadoop-0.20.2/bin
$

案の定、harのためにnativeをインストールしなくてはならないが、cygwin/Macは非対応、と記述があった。

Clipart: FETC     Theme: Robert Boylan     Host: Tumblr     Feed: RSS     History: Archive