set_loc_command = '%s -e "alter table %s set location \'%s\';"' %(beeline_cliet, table_name, location)
#(status, output) = commands.getstatusoutput(set_loc_command)
print set_loc_command
输出:
/home/xxx -u jdbc:hive2://xxxxxxxx -n username -p passwd --maxWidth=10000 -e "alter table tablename
set location 'hdfs://xxxxxxx/app/inf';"
http://blog.csdn.net/zyz511919766/article/details/22668077