GitHub user Sssan520 opened a pull request:
https://github.com/apache/carbondata/pull/2891 [CARBONDATA-3068] fixed cannot load data from hdfs files without hdfs prefix
sql:
LOAD DATA INPATH '/tmp/test.csv' INTO TABLE test OPTIONS('QUOTECHAR'='"','TIMESTAMPFORMAT'='yyyy/MM/dd HH:mm:ss');
error:
org.apache.carbondata.processing.exception.DataLoadingException: The input file does not exist: /tmp/test.csv (state=,code=0)
but the file "test.csv" is in hdfs path, and hadoop conf "core-site.xml" has the property:
<property>
<name>fs.defaultFS</name>
<value>hdfs://master:9000</value>
</property>
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:
- [x] Any interfaces changed?
no
- [x] Any backward compatibility impacted?
no
- [x] Document update required?
no
- [x] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance test report.
- Any additional information to help reviewers in testing this change.
yes
- [x] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
NA
You can merge this pull request into a Git repository by running:
$ git pull
https://github.com/Sssan520/carbondata load_filepath
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/2891.patchTo close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2891
----
commit ea6b67999d8d07013b08813cfe4bb317f17eb09b
Author: Sssan520 <liangap2008@...>
Date: 2018-07-02T11:12:24Z
[CARBONDATA-3068] fixed cannot load data from hdfs files without hdfs prefix
----
---