Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-732

Support executing LINUX shell command and HDFS command.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0, 0.9.0
    • Component/s: None
    • Labels:
      None

      Description

      See the title.

      \! [COMMAND]: executes command in TAJO shell
      \dfs [COMMAND]: executes a dfs command in TAJO shell 
      
      default>\! ls -al
      total 208
      drwxr-xr-x  27 babokim  staff    918  4  2 17:34 .
      drwxr-xr-x  95 babokim  staff   3230  4  2 17:28 ..
      drwxr-xr-x  13 babokim  staff    442  4  2 17:41 .git
      -rw-r--r--   1 babokim  staff    144  4  2 17:29 .gitignore
      drwxr-xr-x  12 babokim  staff    408  4  2 17:41 .idea
      -rw-r--r--   1 babokim  staff   2117  4  2 17:29 BUILDING.txt
      -rw-r--r--   1 babokim  staff  34170  4  2 17:29 CHANGES.txt
      -rw-r--r--   1 babokim  staff  17172  4  2 17:29 LICENSE.txt
      -rw-r--r--   1 babokim  staff    396  4  2 17:29 NOTICE.txt
      -rw-r--r--   1 babokim  staff   2095  4  2 17:29 README
      drwxr-xr-x   4 babokim  staff    136  4  2 17:29 dev-support
      
      default>\dfs -ls /tajo/warehouse
      Found 93 items
      drwxr-xr-x   - tajo supergroup          0 2014-03-25 17:45 /tajo/warehouse/default
      drwxr-xr-x   - tajo supergroup          0 2014-03-04 10:06 /tajo/warehouse/lineitem_100_gzip
      drwxr-xr-x   - tajo supergroup          0 2014-03-22 14:01 /tajo/warehouse/lineitem_100_p
      drwxr-xr-x   - tajo supergroup          0 2014-03-24 14:22 /tajo/warehouse/lineitem_100_rc
      drwxr-xr-x   - tajo supergroup          0 2014-03-19 02:07 /tajo/warehouse/lineitem_tmp
      
      1. TAJO-732.patch
        23 kB
        Hyoungjun Kim

        Activity

        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Tajo-0.8.0-build #69 (See https://builds.apache.org/job/Tajo-0.8.0-build/69/)
        TAJO-732: Support executing LINUX shell command and HDFS command. (hyoungjun kim via hyunsik) (hyunsik: rev a755f51086e5f1fa2a927ee6d2a6c7e489a75cc6)

        • tajo-client/src/main/java/org/apache/tajo/cli/HelpCommand.java
        • tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/master/querymaster/QueryMasterTask.java
        • tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/cli/TestExecExternalShellCommand.java
        • tajo-client/src/main/java/org/apache/tajo/cli/ExecExternalShellCommand.java
        • tajo-client/src/main/java/org/apache/tajo/cli/TajoCli.java
        • tajo-client/src/main/java/org/apache/tajo/client/TajoAdmin.java
        • CHANGES.txt
        • tajo-client/src/main/java/org/apache/tajo/cli/HdfsCommand.java
        • tajo-client/src/main/java/org/apache/tajo/cli/TajoAdminCommand.java
        • tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/cli/TestHdfsCommand.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Tajo-0.8.0-build #69 (See https://builds.apache.org/job/Tajo-0.8.0-build/69/ ) TAJO-732 : Support executing LINUX shell command and HDFS command. (hyoungjun kim via hyunsik) (hyunsik: rev a755f51086e5f1fa2a927ee6d2a6c7e489a75cc6) tajo-client/src/main/java/org/apache/tajo/cli/HelpCommand.java tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/master/querymaster/QueryMasterTask.java tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/cli/TestExecExternalShellCommand.java tajo-client/src/main/java/org/apache/tajo/cli/ExecExternalShellCommand.java tajo-client/src/main/java/org/apache/tajo/cli/TajoCli.java tajo-client/src/main/java/org/apache/tajo/client/TajoAdmin.java CHANGES.txt tajo-client/src/main/java/org/apache/tajo/cli/HdfsCommand.java tajo-client/src/main/java/org/apache/tajo/cli/TajoAdminCommand.java tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/cli/TestHdfsCommand.java
        Hide
        hyunsik Hyunsik Choi added a comment -

        I gave +1 to this patch on RB. just committed it to master and branch-0.8.0. Thank you for your nice contribution.

        Show
        hyunsik Hyunsik Choi added a comment - I gave +1 to this patch on RB. just committed it to master and branch-0.8.0. Thank you for your nice contribution.
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Tajo-master-build #170 (See https://builds.apache.org/job/Tajo-master-build/170/)
        TAJO-732: Support executing LINUX shell command and HDFS command. (hyoungjun kim via hyunsik) (hyunsik: rev 5ae608b1261f1b754f2bb58de793c539bd98360f)

        • tajo-client/src/main/java/org/apache/tajo/cli/HelpCommand.java
        • CHANGES.txt
        • tajo-client/src/main/java/org/apache/tajo/cli/TajoCli.java
        • tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/cli/TestExecExternalShellCommand.java
        • tajo-client/src/main/java/org/apache/tajo/client/TajoAdmin.java
        • tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/cli/TestHdfsCommand.java
        • tajo-client/src/main/java/org/apache/tajo/cli/HdfsCommand.java
        • tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/master/querymaster/QueryMasterTask.java
        • tajo-client/src/main/java/org/apache/tajo/cli/TajoAdminCommand.java
        • tajo-client/src/main/java/org/apache/tajo/cli/ExecExternalShellCommand.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Tajo-master-build #170 (See https://builds.apache.org/job/Tajo-master-build/170/ ) TAJO-732 : Support executing LINUX shell command and HDFS command. (hyoungjun kim via hyunsik) (hyunsik: rev 5ae608b1261f1b754f2bb58de793c539bd98360f) tajo-client/src/main/java/org/apache/tajo/cli/HelpCommand.java CHANGES.txt tajo-client/src/main/java/org/apache/tajo/cli/TajoCli.java tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/cli/TestExecExternalShellCommand.java tajo-client/src/main/java/org/apache/tajo/client/TajoAdmin.java tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/cli/TestHdfsCommand.java tajo-client/src/main/java/org/apache/tajo/cli/HdfsCommand.java tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/master/querymaster/QueryMasterTask.java tajo-client/src/main/java/org/apache/tajo/cli/TajoAdminCommand.java tajo-client/src/main/java/org/apache/tajo/cli/ExecExternalShellCommand.java
        Hide
        tajoqa Tajo QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12639787/TAJO-732.patch
        against master revision 38f5316.

        +1 @author. The patch does not contain any @author tags.

        +1 tests included. The patch appears to include 2 new or modified test files.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 javadoc. The applied patch does not increase the total number of javadoc warnings.

        +1 checkstyle. The patch generated 0 code style errors.

        -1 findbugs. The patch appears to introduce 203 new Findbugs (version 1.3.9) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        -1 core tests. The patch failed these unit tests in tajo-client tajo-core/tajo-core-backend:
        org.apache.tajo.cli.TestExecExternalShellCommand
        org.apache.tajo.cli.TestHdfsCommand

        Test results: https://builds.apache.org/job/PreCommit-TAJO-Build/330//testReport/
        Findbugs warnings: https://builds.apache.org/job/PreCommit-TAJO-Build/330//artifact/incubator-tajo/patchprocess/newPatchFindbugsWarningstajo-client.html
        Findbugs warnings: https://builds.apache.org/job/PreCommit-TAJO-Build/330//artifact/incubator-tajo/patchprocess/newPatchFindbugsWarningstajo-core-backend.html
        Console output: https://builds.apache.org/job/PreCommit-TAJO-Build/330//console

        This message is automatically generated.

        Show
        tajoqa Tajo QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12639787/TAJO-732.patch against master revision 38f5316. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 2 new or modified test files. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 javadoc. The applied patch does not increase the total number of javadoc warnings. +1 checkstyle. The patch generated 0 code style errors. -1 findbugs. The patch appears to introduce 203 new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. -1 core tests. The patch failed these unit tests in tajo-client tajo-core/tajo-core-backend: org.apache.tajo.cli.TestExecExternalShellCommand org.apache.tajo.cli.TestHdfsCommand Test results: https://builds.apache.org/job/PreCommit-TAJO-Build/330//testReport/ Findbugs warnings: https://builds.apache.org/job/PreCommit-TAJO-Build/330//artifact/incubator-tajo/patchprocess/newPatchFindbugsWarningstajo-client.html Findbugs warnings: https://builds.apache.org/job/PreCommit-TAJO-Build/330//artifact/incubator-tajo/patchprocess/newPatchFindbugsWarningstajo-core-backend.html Console output: https://builds.apache.org/job/PreCommit-TAJO-Build/330//console This message is automatically generated.
        Hide
        hjkim Hyoungjun Kim added a comment - - edited

        Created a review request against branch master in reviewboard
        https://reviews.apache.org/r/20255/

        Show
        hjkim Hyoungjun Kim added a comment - - edited Created a review request against branch master in reviewboard https://reviews.apache.org/r/20255/

          People

          • Assignee:
            hjkim Hyoungjun Kim
            Reporter:
            hjkim Hyoungjun Kim
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development