하이브 스크립트에 데이터 매개 변수를 전달하고 있지만 작동하지 않습니다.하이브에서 데이터 인수가 예상대로 작동하지 않습니다.
SET yrmonth=concat(substr(to_date(${hiveconf:runningdate}),1,4),substr(to_date(${hiveconf:runningdate}),6,2));
SET fom=TRUNC(${hiveconf:runningdate},'MONTH');
SET lom=LAST_DAY(${hiveconf:runningdate});
USE cust_db;
SELECT saleid,podid,pname
FROM product
WHERE productln_yrmo=${hiveconf:yrmonth};
는 --customer_createddt가 쿼리에서 날짜 열
hive -hiveconf runningdate='2016-05-18' -f cust.hql
에 오신 것을 환영합니다 (또한 더 선명도 테이블의 DDL을 게시하시기 바랍니다). 커뮤니티가 귀하를 도울 수 있으려면 먼저 정확한 이슈와 귀하가 그것에 관해 가지고있는 특정 질문을 지정해야합니다. – rvighne
최대한 빨리 도와주세요. – Rock