Hama
  1. Hama
  2. HAMA-351

Improvement of lack of information about the output of examples

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.2.0
    • Component/s: None
    • Labels:
      None

      Description

      Current examples does not print any output. It would be nice if we add some guidelines.

      1. HAMA-351.patch
        3 kB
        Edward J. Yoon
      2. HAMA-351_v01.patch
        7 kB
        Edward J. Yoon
      3. HAMA-351_v02.patch
        9 kB
        Edward J. Yoon

        Activity

        Hide
        Edward J. Yoon added a comment -

        I just committed this.

        Show
        Edward J. Yoon added a comment - I just committed this.
        Hide
        Edward J. Yoon added a comment -

        this patch uses waitForCompletion() method, instead of runJob() method.

        Show
        Edward J. Yoon added a comment - this patch uses waitForCompletion() method, instead of runJob() method.
        Hide
        Edward J. Yoon added a comment -

        Oh, there is a trivial bug. if job is killed by user, file does not exist exception will be throwed.

        Show
        Edward J. Yoon added a comment - Oh, there is a trivial bug. if job is killed by user, file does not exist exception will be throwed.
        Hide
        Edward J. Yoon added a comment -

        I've just committed this.

        Show
        Edward J. Yoon added a comment - I've just committed this.
        Hide
        Edward J. Yoon added a comment -

        This patch allows you to save the result on a file of HDFS or local filesystem.

        edward@slave:~/workspace/hama-trunk$ bin/hama jar build/hama-0.2.0-dev-examples.jar pi
        11/02/08 22:07:04 DEBUG bsp.BSPJobClient: BSPJobClient.submitJobDir: hdfs://slave.udanax.org:9000/tmp/hadoop-edward/bsp/system/submit_k9qas
        11/02/08 22:07:04 INFO bsp.BSPJobClient: Running job: job_201102082206_0001
        11/02/08 22:07:07 INFO bsp.BSPJobClient: Job complete: job_201102082206_0001
        11/02/08 22:07:07 INFO bsp.BSPJobClient: The total number of supersteps: 1
        Job Finished in 3.382 seconds
        Estimated value of PI is 3.123
        edward@slave:~/workspace/hama-trunk$ bin/hama jar build/hama-0.2.0-dev-examples.jar test
        11/02/08 22:07:10 DEBUG bsp.BSPJobClient: BSPJobClient.submitJobDir: hdfs://slave.udanax.org:9000/tmp/hadoop-edward/bsp/system/submit_aik7f7
        11/02/08 22:07:11 INFO bsp.BSPJobClient: Running job: job_201102082206_0002
        11/02/08 22:07:24 INFO bsp.BSPJobClient: Job complete: job_201102082206_0002
        11/02/08 22:07:24 INFO bsp.BSPJobClient: The total number of supersteps: 2
        Each task printed the "Hello World" as below:
        Tue Feb 08 22:07:12 KST 2011: Hello BSP from 1 of 2: slave.udanax.org:61000
        Tue Feb 08 22:05:42 KST 2011: Hello BSP from 2 of 2: tweetple.com:61000
        
        Show
        Edward J. Yoon added a comment - This patch allows you to save the result on a file of HDFS or local filesystem. edward@slave:~/workspace/hama-trunk$ bin/hama jar build/hama-0.2.0-dev-examples.jar pi 11/02/08 22:07:04 DEBUG bsp.BSPJobClient: BSPJobClient.submitJobDir: hdfs: //slave.udanax.org:9000/tmp/hadoop-edward/bsp/system/submit_k9qas 11/02/08 22:07:04 INFO bsp.BSPJobClient: Running job: job_201102082206_0001 11/02/08 22:07:07 INFO bsp.BSPJobClient: Job complete: job_201102082206_0001 11/02/08 22:07:07 INFO bsp.BSPJobClient: The total number of supersteps: 1 Job Finished in 3.382 seconds Estimated value of PI is 3.123 edward@slave:~/workspace/hama-trunk$ bin/hama jar build/hama-0.2.0-dev-examples.jar test 11/02/08 22:07:10 DEBUG bsp.BSPJobClient: BSPJobClient.submitJobDir: hdfs: //slave.udanax.org:9000/tmp/hadoop-edward/bsp/system/submit_aik7f7 11/02/08 22:07:11 INFO bsp.BSPJobClient: Running job: job_201102082206_0002 11/02/08 22:07:24 INFO bsp.BSPJobClient: Job complete: job_201102082206_0002 11/02/08 22:07:24 INFO bsp.BSPJobClient: The total number of supersteps: 2 Each task printed the "Hello World" as below: Tue Feb 08 22:07:12 KST 2011: Hello BSP from 1 of 2: slave.udanax.org:61000 Tue Feb 08 22:05:42 KST 2011: Hello BSP from 2 of 2: tweetple.com:61000
        Hide
        Edward J. Yoon added a comment -

        attach my patch.

        Show
        Edward J. Yoon added a comment - attach my patch.

          People

          • Assignee:
            Edward J. Yoon
            Reporter:
            Edward J. Yoon
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development