2016-10-31 7 views
0

hdinsight에서 하이브 쿼리에서 파일 시스템 : 나는 폴더에 hdinsight의 경우에 쿼리 결과를 저장하려면 어떻게 https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DML#LanguageManualDML-Writingdataintothefilesystemfromqueries데이터 쓰기가 나는 그것의 생존은 하둡 파일 시스템 쿼리 결과를 작성하는 것을 볼

blobstorage에서 액세스 할 수있는 .

아래와 같이 시도했지만 성공하지 못했습니다. 당신이 그들을 작동됩니다 쿼리 'LOCAL'을 제거하면

INSERT OVERWRITE LOCAL DIRECTORY '/example/distinctconsumers' ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' select consumerid from distinctconsumers; 

감사

답변

0

언어 설명서는 명확

LOCAL keyword is used, Hive will write data to the directory on the local file system. 

아래에 나와 있습니다.

참고 : 결과는 하나의 파일 만 (각 작업에서 하나) 파일의 목록

하지 않을 수도 있습니다