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

Allen Wittenauer commented on HADOOP-15797:
-------------------------------------------


bq. working with the classpaath env var seems like a step backwards.

Just to be explicit about it, enabling Azure, etc, is not about users modifying 
the classpath directly.  That's always dangerous.  But it is about modifying 
the HADOOP_OPTIONAL_TOOLS var as documented in hadoop-env.sh (as well as a few 
other places):

{code}
# Enable optional, bundled Hadoop features
# This is a comma delimited list.  It may NOT be overridden via .hadooprc
# Entries may be added/removed as needed.
# export 
HADOOP_OPTIONAL_TOOLS="hadoop-aliyun,hadoop-aws,hadoop-azure,hadoop-azure-datalake,hadoop-kafka,hadoop-openstack"
{code}

bq. The metric for CP setup is always the same:
bq. Does hadoop fs -ls <my store URL> work? If it does, distcp and everything 
else should also kick in, maybe even HBase.

Using .hadooprc, hadoop fs -ls can work but the others may not since distcp, 
HBase, etc require the entire cluster to be configured.  This is why these 
settings are hadoop-env.sh config and not a hadooprc config.

> optional / builtin modules confused for cloud storage
> -----------------------------------------------------
>
>                 Key: HADOOP-15797
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15797
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs/adl, fs/azure, fs/s3
>    Affects Versions: 3.2.0, 3.1.1
>            Reporter: Sean Mackrory
>            Priority: Major
>
> Throwing this in your .hadooprc results in hadoop-aws being in the classpath 
> but not hadoop-azure*:
> {quote}
> hadoop_add_to_classpath_tools hadoop-aws
> hadoop_add_to_classpath_tools hadoop-azure
> hadoop_add_to_classpath_tools hadoop-azure-datalake
> {quote}
> It would seem that the core issue is that that requires the module to have 
> listed it's dependencies in MODULE_NAME.tools-builtin.txt, whereas the Azure 
> connectors only have them listed in MODULE_NAME.tools-optional.txt. S3 does 
> both, and there's a comment in it's POM about how it needs to do this because 
> of the "hadoop s3guard" CLI.
> Maybe there's some history that I'm missing here, but I think what's wrong 
> here is that hadoop_add_to_classpath should get what it needs from optional 
> modules. builtin modules shouldn't even need hadoop_add_to_classpath to be 
> added anyway.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to