HDInsight specifying the output directory

Source: Internet
Author: User
Tags hdinsight

Basic syntax

' /example/demo/ ' Select  from table;

Can format output

' /test_select/output ' ' \ t ' Select  from table;

You can also export to remote HDFS

' Wasb://[email protected]/test-select-output/01 '  Select  from table;

Remember: query results are placed locally. can use

Row format delimited

To format the result of the output:

If the output directory is the remote address of the HDFS path: Format output is not allowed

Note: export to local can be set by the row format delimiter, export to HDFs is not set delimiter ;

It is also important to note that the data export statement is not a permission to create a directory. If the specified output directory does not exist, it is not created automatically: There will be no output results:

Remember to ensure that the directory exists before exporting.

HDInsight Specify output directory

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.