Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2366

Deprecated Job constructor in hostdb/ReadHostDb.java

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.12
    • Fix Version/s: 1.13
    • Component/s: build
    • Labels:
      None

      Description

      When we try to build ant using nutch we get the following warning :
      warning: [deprecation] Job(Configuration,String) in Job has been deprecated
      [javac] Job job = new Job(conf, "ReadHostDb");

      This is because the constructor Job(Configuration conf, String jobName) has been deprecated and the reference can be found at [0].

      [0] http://hadoop.apache.org/docs/stable2/api/org/apache/hadoop/mapreduce/Job.html#getInstance%28org.apache.hadoop.conf.Configuration%29

      1. NUTCH-2366.patch
        0.8 kB
        Omkar Reddy

        Activity

        Hide
        omkar20895 Omkar Reddy added a comment -

        Yes, this is my first patch Lewis John McGibbney

        Show
        omkar20895 Omkar Reddy added a comment - Yes, this is my first patch Lewis John McGibbney
        Hide
        lewismc Lewis John McGibbney added a comment -

        Is this your first patch to Nutch Omkar Reddy?

        Show
        lewismc Lewis John McGibbney added a comment - Is this your first patch to Nutch Omkar Reddy ?
        Hide
        omkar20895 Omkar Reddy added a comment -

        Thank you very much Markus Jelsma

        Show
        omkar20895 Omkar Reddy added a comment - Thank you very much Markus Jelsma
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build Nutch-trunk #3413 (See https://builds.apache.org/job/Nutch-trunk/3413/)
        NUTCH-2366 Deprecated Job constructor in hostdb/ReadHostDb.java\ (markus: https://github.com/apache/nutch/commit/3926910e145df083ec9d42cd397c0cbd9b3a16da)

        • (edit) src/java/org/apache/nutch/hostdb/ReadHostDb.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Nutch-trunk #3413 (See https://builds.apache.org/job/Nutch-trunk/3413/ ) NUTCH-2366 Deprecated Job constructor in hostdb/ReadHostDb.java\ (markus: https://github.com/apache/nutch/commit/3926910e145df083ec9d42cd397c0cbd9b3a16da ) (edit) src/java/org/apache/nutch/hostdb/ReadHostDb.java
        Hide
        markus17 Markus Jelsma added a comment -

        Committed to 6d47e14..3926910 master -> master
        Thanks Omkar!!

        Show
        markus17 Markus Jelsma added a comment - Committed to 6d47e14..3926910 master -> master Thanks Omkar!!
        Hide
        markus17 Markus Jelsma added a comment -

        I prefer patches, so this is fine. Will commit it when i am at my office.
        Thanks

        Show
        markus17 Markus Jelsma added a comment - I prefer patches, so this is fine. Will commit it when i am at my office. Thanks
        Hide
        omkar20895 Omkar Reddy added a comment -

        Hi Markus Jelsma, Do I need to send a pull request to the git repo or is the patch enough? Thanks.

        Show
        omkar20895 Omkar Reddy added a comment - Hi Markus Jelsma , Do I need to send a pull request to the git repo or is the patch enough? Thanks.

          People

          • Assignee:
            markus17 Markus Jelsma
            Reporter:
            omkar20895 Omkar Reddy
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development