[ 
https://issues.apache.org/jira/browse/KYLIN-5059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17396543#comment-17396543
 ] 

Shengjun Zheng edited comment on KYLIN-5059 at 8/10/21, 8:44 AM:
-----------------------------------------------------------------

When using different HDFS cluster in cube building jobs, It's not advised to 
get FileSystem using:
{code:java}
FileSystem.get(new Configuration()){code}
It's better to use 
{code:java}
path.getFileSystem(new Configuration()){code}
The FileSystem you get by first approach can only operate on namespace 
configured by "fs.defaultFS" in core-site.xml, which may not be the Filesystem 
you want for specific Path.

 


was (Author: zhengshengjun):
When using different HDFS cluster in cube building jobs, It's not advised to 
get FileSystem using:
{code:java}
new FileSystem(new Configuration()){code}
It's better to use 
{code:java}
path.getFileSystem(new Configuration()){code}
The FileSystem you get by first approach can only operate on namespace 
configured by "fs.defaultFS" in core-site.xml, which may not be the Filesystem 
you want for specific Path.

 

> Fix error when using different HDFS cluster in cube building
> ------------------------------------------------------------
>
>                 Key: KYLIN-5059
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5059
>             Project: Kylin
>          Issue Type: New Feature
>            Reporter: Shengjun Zheng
>            Assignee: Shengjun Zheng
>            Priority: Major
>             Fix For: v4.1.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to