diff options
author | Sean Owen <sowen@cloudera.com> | 2016-01-02 13:15:53 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-01-02 13:15:53 +0000 |
commit | 15bd73627e04591fd13667b4838c9098342db965 (patch) | |
tree | 5b23cdd4e75138f38ad51ebb17dcf45305c9e3c0 /scalastyle-config.xml | |
parent | 94f7a12b3c8e4a6ecd969893e562feb7ffba4c24 (diff) | |
download | spark-15bd73627e04591fd13667b4838c9098342db965.tar.gz spark-15bd73627e04591fd13667b4838c9098342db965.tar.bz2 spark-15bd73627e04591fd13667b4838c9098342db965.zip |
[SPARK-12481][CORE][STREAMING][SQL] Remove usage of Hadoop deprecated APIs and reflection that supported 1.x
Remove use of deprecated Hadoop APIs now that 2.2+ is required
Author: Sean Owen <sowen@cloudera.com>
Closes #10446 from srowen/SPARK-12481.
Diffstat (limited to 'scalastyle-config.xml')
-rw-r--r-- | scalastyle-config.xml | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/scalastyle-config.xml b/scalastyle-config.xml index 16d18b3328..ee855ca0e0 100644 --- a/scalastyle-config.xml +++ b/scalastyle-config.xml @@ -187,14 +187,6 @@ This file is divided into 3 sections: scala.collection.JavaConverters._ and use .asScala / .asJava methods</customMessage> </check> - <!-- As of SPARK-10330 JobContext methods should not be called directly --> - <check customId="jobcontext" level="error" class="org.scalastyle.scalariform.TokenChecker" enabled="true"> - <parameters><parameter name="regex">^getConfiguration$|^getTaskAttemptID$</parameter></parameters> - <customMessage>Instead of calling .getConfiguration() or .getTaskAttemptID() directly, - use SparkHadoopUtil's getConfigurationFromJobContext() and getTaskAttemptIDFromTaskAttemptContext() methods. - </customMessage> - </check> - <!-- ================================================================================ --> <!-- rules we'd like to enforce, but haven't cleaned up the codebase yet --> <!-- ================================================================================ --> |