Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14315

Python example in the rack awareness document doesn't work due to bad indentation

    Details

    • Hadoop Flags:
      Reviewed

      Description

      Running that example fails with:

        File "example.py", line 28
          address = '{0}/{1}'.format(ip, netmask)                      # format address string so it looks like 'ip/netmask' to make netaddr work
                ^
      IndentationError: expected an indented block
      

        Issue Links

          Activity

          Hide
          vinodkv Vinod Kumar Vavilapalli added a comment -

          2.8.1 became a security release. Moving fix-version to 2.8.2 after the fact.

          Show
          vinodkv Vinod Kumar Vavilapalli added a comment - 2.8.1 became a security release. Moving fix-version to 2.8.2 after the fact.
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11599 (See https://builds.apache.org/job/Hadoop-trunk-Commit/11599/)
          HADOOP-14315. Python example in the rack awareness document doesn't work (aajisaka: rev 654372db859656a2201ae9f9f7c374c6564ea34d)

          • (edit) hadoop-common-project/hadoop-common/src/site/markdown/RackAwareness.md
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11599 (See https://builds.apache.org/job/Hadoop-trunk-Commit/11599/ ) HADOOP-14315 . Python example in the rack awareness document doesn't work (aajisaka: rev 654372db859656a2201ae9f9f7c374c6564ea34d) (edit) hadoop-common-project/hadoop-common/src/site/markdown/RackAwareness.md
          Hide
          ajisakaa Akira Ajisaka added a comment -

          Committed this to trunk, branch-2, branch-2.8, and branch-2.8.1. Thanks Kengo Seki for the contribution!

          Show
          ajisakaa Akira Ajisaka added a comment - Committed this to trunk, branch-2, branch-2.8, and branch-2.8.1. Thanks Kengo Seki for the contribution!
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user asfgit closed the pull request at:

          https://github.com/apache/hadoop/pull/214

          Show
          githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/hadoop/pull/214
          Hide
          ajisakaa Akira Ajisaka added a comment -

          +1

          Show
          ajisakaa Akira Ajisaka added a comment - +1
          Hide
          hadoopqa Hadoop QA added a comment -
          +1 overall



          Vote Subsystem Runtime Comment
          0 reexec 0m 16s Docker mode activated.
          +1 @author 0m 0s The patch does not contain any @author tags.
          +1 mvninstall 13m 27s trunk passed
          +1 mvnsite 0m 59s trunk passed
          +1 mvnsite 0m 52s the patch passed
          +1 whitespace 0m 0s The patch has no whitespace issues.
          +1 asflicense 0m 17s The patch does not generate ASF License warnings.
          16m 15s



          Subsystem Report/Notes
          Docker Image:yetus/hadoop:0ac17dc
          JIRA Issue HADOOP-14315
          GITHUB PR https://github.com/apache/hadoop/pull/214
          Optional Tests asflicense mvnsite
          uname Linux 74e0fffeeeab 3.13.0-106-generic #153-Ubuntu SMP Tue Dec 6 15:44:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
          Build tool maven
          Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
          git revision trunk / 84a8848
          modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common
          Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/12115/console
          Powered by Apache Yetus 0.5.0-SNAPSHOT http://yetus.apache.org

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - +1 overall Vote Subsystem Runtime Comment 0 reexec 0m 16s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. +1 mvninstall 13m 27s trunk passed +1 mvnsite 0m 59s trunk passed +1 mvnsite 0m 52s the patch passed +1 whitespace 0m 0s The patch has no whitespace issues. +1 asflicense 0m 17s The patch does not generate ASF License warnings. 16m 15s Subsystem Report/Notes Docker Image:yetus/hadoop:0ac17dc JIRA Issue HADOOP-14315 GITHUB PR https://github.com/apache/hadoop/pull/214 Optional Tests asflicense mvnsite uname Linux 74e0fffeeeab 3.13.0-106-generic #153-Ubuntu SMP Tue Dec 6 15:44:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / 84a8848 modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/12115/console Powered by Apache Yetus 0.5.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user sekikn opened a pull request:

          https://github.com/apache/hadoop/pull/214

          HADOOP-14315: Python example in the rack awareness document doesn't work due to bad indentation

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/sekikn/hadoop HADOOP-14315

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/hadoop/pull/214.patch

          To close this pull request, make a commit to your master/trunk branch
          with (at least) the following in the commit message:

          This closes #214


          commit 763ae5009bbc790188281c91c8d822983a5c0714
          Author: Kengo Seki <sekikn@apache.org>
          Date: 2017-04-18T03:29:58Z

          HADOOP-14315: Python example in the rack awareness document doesn't work due to bad indentation


          Show
          githubbot ASF GitHub Bot added a comment - GitHub user sekikn opened a pull request: https://github.com/apache/hadoop/pull/214 HADOOP-14315 : Python example in the rack awareness document doesn't work due to bad indentation You can merge this pull request into a Git repository by running: $ git pull https://github.com/sekikn/hadoop HADOOP-14315 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/hadoop/pull/214.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #214 commit 763ae5009bbc790188281c91c8d822983a5c0714 Author: Kengo Seki <sekikn@apache.org> Date: 2017-04-18T03:29:58Z HADOOP-14315 : Python example in the rack awareness document doesn't work due to bad indentation

            People

            • Assignee:
              sekikn Kengo Seki
              Reporter:
              sekikn Kengo Seki
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development