<强> 强> <强> 强>
<强> 强> <强> 强>
<强> 强>
<强> 强> <强> 强> <强> 强>
<强> 强> <强> 强>
hive [-hiveconf x=y] *, * (& lt; -ifilename>), [& lt; -f  filename> | & lt; -e query-string>], [s]
HIVE_HOME美元/bin/hive -e “select a.colfrom tab1 ”, -hiveconf hive.exec.scratchdir=/home/我/hive_scratch -hiveconfmapred.reduce。任务=32
HIVE_HOME/bin/hive , - e 'select a.col 得到tab1 “,祝辞。txt
HIVE_HOME/bin/hive - f/home/我/hive-script。sql
HIVE_HOME/bin/hive i/home/我/hive-init。sql
<强> 强> <强> 强>
<强> 强> <强> 强>
HIVE_HOME美元/bin/hive -hiveconfhive.root。logger=INFO,console
set hive.optimize.bucketmapjoin = true
INSERT OVERWRITE TABLE phone_traffic SELECT /* + MAPJOIN (phone_location), */, l.phone, p.location, l.traffic 得到phone_location p join log l 在(p.phone=l.phone)
hive.join.emit.interval =, 1000请;many rows 拷贝,right-most join operand Hive should buffer before emittingthe join 结果。 hive.mapjoin.size.key =10000 hive.mapjoin.cache.numrows =10000
<强> 强> <强> 强>
<强> 强> <强> 强>