我想从配置单元中的date列查询不同的日期,并将其存储到本地的文本文件中。hive -e "SELECT distinct(part_date) AS distinct_date FROM ${table_name} where partition_date between${start_date} and ${end_date}"; >> local/path/
我试图通过Oozie工作流中的bash操作对表运行hive count查询,但我总是得到一个table not found异常。COUNT=$(hive -S -e "SELECT COUNT(*) FROM <table_name> where <condition>;")其想法是将计数存储在一个变量中如果直接从shell上的<
/my/local/filesystem/directory/path中已经存在的全部数据。我想要的是只是把的数据复制到/my/loca/filesystem/directory/path和上,而不是覆盖,怎么做呢?以下是我失败的试验:
hive> insert into local directory '/home/cloudera&