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

Some older version of OpenJDK 1.6 does not get default timezone id

    Details

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

      Description

      Some older version of openjdk 1.6 does not find timezone information on rhel 6.x or fedora linux when it boots up. So it also affected to the TajoConf, and it always show empty string when getting tajo.timezone configuration. When I running this command on rhel 6.4, it does not return the timezone information and tajocli shows the timestamp 9 hours earlier.

      [root@oracle-db1 tajo-0.9.1]# ./bin/tajo getconf tajo.timezone
      
      
      tpch> select now();
      ?now
      -------------------------------
      2014-11-12 08:19:27.566
      [root@oracle-db1 tajo-0.9.1]# date
      2014. 11. 12. 17:20:00 KST
      

        Activity

        Hide
        githubbot ASF GitHub Bot added a comment -

        GitHub user ykrips opened a pull request:

        https://github.com/apache/tajo/pull/239

        TAJO-1169: Some older version of OpenJDK 1.6 does not get default timezone id

        It has been tested by getting default timezone id.
        ```
        [root@oracle-db1 tajo-0.9.1]# ./bin/tajo getconf tajo.timezone
        Asia/Seoul
        ```

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

        $ git pull https://github.com/ykrips/tajo TAJO-1169

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

        https://github.com/apache/tajo/pull/239.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 #239


        commit 6ac4487652de6cae541dceae3e1b10af288b4a9f
        Author: Jihun Kang <ykrips@gmail.com>
        Date: 2014-11-12T08:30:27Z

        TAJO-1169: Some older version of OpenJDK 1.6 does not get default timezone id


        Show
        githubbot ASF GitHub Bot added a comment - GitHub user ykrips opened a pull request: https://github.com/apache/tajo/pull/239 TAJO-1169 : Some older version of OpenJDK 1.6 does not get default timezone id It has been tested by getting default timezone id. ``` [root@oracle-db1 tajo-0.9.1] # ./bin/tajo getconf tajo.timezone Asia/Seoul ``` You can merge this pull request into a Git repository by running: $ git pull https://github.com/ykrips/tajo TAJO-1169 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/tajo/pull/239.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 #239 commit 6ac4487652de6cae541dceae3e1b10af288b4a9f Author: Jihun Kang <ykrips@gmail.com> Date: 2014-11-12T08:30:27Z TAJO-1169 : Some older version of OpenJDK 1.6 does not get default timezone id
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user hyunsik commented on the pull request:

        https://github.com/apache/tajo/pull/239#issuecomment-63182497

        +1
        The patch looks good to me.

        Show
        githubbot ASF GitHub Bot added a comment - Github user hyunsik commented on the pull request: https://github.com/apache/tajo/pull/239#issuecomment-63182497 +1 The patch looks good to me.
        Hide
        hyunsik Hyunsik Choi added a comment -

        committed.

        Show
        hyunsik Hyunsik Choi added a comment - committed.
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Tajo-master-build #451 (See https://builds.apache.org/job/Tajo-master-build/451/)
        TAJO-1169: Some older version of OpenJDK 1.6 does not get default timezone id. (Jihun Kang via hyunsik) (hyunsik: rev 6059a3dd15e05cf1364cab6b90796acfa0356dea)

        • CHANGES
        • tajo-common/src/main/java/org/apache/tajo/conf/TajoConf.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Tajo-master-build #451 (See https://builds.apache.org/job/Tajo-master-build/451/ ) TAJO-1169 : Some older version of OpenJDK 1.6 does not get default timezone id. (Jihun Kang via hyunsik) (hyunsik: rev 6059a3dd15e05cf1364cab6b90796acfa0356dea) CHANGES tajo-common/src/main/java/org/apache/tajo/conf/TajoConf.java
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Tajo-master-CODEGEN-build #93 (See https://builds.apache.org/job/Tajo-master-CODEGEN-build/93/)
        TAJO-1169: Some older version of OpenJDK 1.6 does not get default timezone id. (Jihun Kang via hyunsik) (hyunsik: rev 6059a3dd15e05cf1364cab6b90796acfa0356dea)

        • CHANGES
        • tajo-common/src/main/java/org/apache/tajo/conf/TajoConf.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Tajo-master-CODEGEN-build #93 (See https://builds.apache.org/job/Tajo-master-CODEGEN-build/93/ ) TAJO-1169 : Some older version of OpenJDK 1.6 does not get default timezone id. (Jihun Kang via hyunsik) (hyunsik: rev 6059a3dd15e05cf1364cab6b90796acfa0356dea) CHANGES tajo-common/src/main/java/org/apache/tajo/conf/TajoConf.java
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user asfgit closed the pull request at:

        https://github.com/apache/tajo/pull/239

        Show
        githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/tajo/pull/239

          People

          • Assignee:
            ykrips Jihun Kang
            Reporter:
            ykrips Jihun Kang
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development