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

Hudson commented on SQOOP-2786:
-------------------------------

SUCCESS: Integrated in Sqoop2 #997 (See 
[https://builds.apache.org/job/Sqoop2/997/])
SQOOP-2786: Sqoop2: If AUTHENTICATION_KERBEROS_KEYTAB is not found in (jarcec: 
[https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=22b1a05137ff9cc7e6c5a686ada65b53091b56f1])
* common/src/main/java/org/apache/sqoop/common/MapContext.java


> Sqoop2: If AUTHENTICATION_KERBEROS_KEYTAB is not found in the properties 
> throw a meaningful exception
> -----------------------------------------------------------------------------------------------------
>
>                 Key: SQOOP-2786
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2786
>             Project: Sqoop
>          Issue Type: Improvement
>    Affects Versions: 1.99.6
>            Reporter: Abraham Fine
>            Assignee: Abraham Fine
>             Fix For: 1.99.7
>
>         Attachments: SQOOP-2786.patch
>
>
> Currently we have:
> {code:java}
> MapContext mapContext = SqoopConfiguration.getInstance().getContext();
>     String keytab = mapContext.getString(
>     SecurityConstants.AUTHENTICATION_KERBEROS_KEYTAB).trim();
> {code}
> If SecurityConstants.AUTHENTICATION_KERBEROS_KEYTAB is not found in the 
> properties we throw a null pointer exception. Our exception should indicate 
> exactly which property is not found.
> It may also be useful to log something when we need to revert to a default 
> value when we do something like:
> {code:java}
> SqoopConfiguration.getInstance().getContext().getBoolean(RepoConfigurationConstants.SYSCFG_REPO_SCHEMA_IMMUTABLE,
>  true));
> {code} 
> to always indicate where we are not using configuration.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to