You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Carl Steinbach (JIRA)" <ji...@apache.org> on 2010/07/14 19:57:51 UTC

[jira] Created: (HIVE-1465) hive-site.xml ${user.name} not replaced for local-file derby metastore connection URL

hive-site.xml ${user.name} not replaced for local-file derby metastore connection URL
-------------------------------------------------------------------------------------

                 Key: HIVE-1465
                 URL: https://issues.apache.org/jira/browse/HIVE-1465
             Project: Hadoop Hive
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 0.5.0, 0.6.0
            Reporter: Carl Steinbach


Seems that for this parameter

{code}
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:derby:;databaseName=/var/lib/hive/metastore/${user.name}_db;create=true</value>
<description>JDBC connect string for a JDBC metastore</description>
</property>
{code}

$\{user.name\} is never replaced by the actual user name:

{code}
$ ls -la /var/lib/hive/metastore/
total 24
drwxrwxrwt 3 root root 4096 Apr 30 12:37 .
drwxr-xr-x 3 root root 4096 Apr 30 12:25 ..
drwxrwxr-x 5 hadoop hadoop 4096 Apr 30 12:37 ${user.name}_db
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1465) hive-site.xml ${user.name} not replaced for local-file derby metastore connection URL

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12890397#action_12890397 ] 

Carl Steinbach commented on HIVE-1465:
--------------------------------------

Filed HIVE-1474 to track the force substitution enhancement to the 'set' command.

> hive-site.xml ${user.name} not replaced for local-file derby metastore connection URL
> -------------------------------------------------------------------------------------
>
>                 Key: HIVE-1465
>                 URL: https://issues.apache.org/jira/browse/HIVE-1465
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 0.5.0, 0.6.0
>            Reporter: Carl Steinbach
>
> Seems that for this parameter
> {code}
> <property>
> <name>javax.jdo.option.ConnectionURL</name>
> <value>jdbc:derby:;databaseName=/var/lib/hive/metastore/${user.name}_db;create=true</value>
> <description>JDBC connect string for a JDBC metastore</description>
> </property>
> {code}
> $\{user.name\} is never replaced by the actual user name:
> {code}
> $ ls -la /var/lib/hive/metastore/
> total 24
> drwxrwxrwt 3 root root 4096 Apr 30 12:37 .
> drwxr-xr-x 3 root root 4096 Apr 30 12:25 ..
> drwxrwxr-x 5 hadoop hadoop 4096 Apr 30 12:37 ${user.name}_db
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1465) hive-site.xml ${user.name} not replaced for local-file derby metastore connection URL

Posted by "Joydeep Sen Sarma (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889271#action_12889271 ] 

Joydeep Sen Sarma commented on HIVE-1465:
-----------------------------------------

yeah - i am a little confused by this too. for many hive variables - when i try to print them out using 'set' command - i see the unexpanded variable. yet - when hadoop uses those same variables (typically path settings) - the variable is expanded out. i am guessing we are not using the right interface call to get these variables in hive code.

> hive-site.xml ${user.name} not replaced for local-file derby metastore connection URL
> -------------------------------------------------------------------------------------
>
>                 Key: HIVE-1465
>                 URL: https://issues.apache.org/jira/browse/HIVE-1465
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 0.5.0, 0.6.0
>            Reporter: Carl Steinbach
>
> Seems that for this parameter
> {code}
> <property>
> <name>javax.jdo.option.ConnectionURL</name>
> <value>jdbc:derby:;databaseName=/var/lib/hive/metastore/${user.name}_db;create=true</value>
> <description>JDBC connect string for a JDBC metastore</description>
> </property>
> {code}
> $\{user.name\} is never replaced by the actual user name:
> {code}
> $ ls -la /var/lib/hive/metastore/
> total 24
> drwxrwxrwt 3 root root 4096 Apr 30 12:37 .
> drwxr-xr-x 3 root root 4096 Apr 30 12:25 ..
> drwxrwxr-x 5 hadoop hadoop 4096 Apr 30 12:37 ${user.name}_db
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1465) hive-site.xml ${user.name} not replaced for local-file derby metastore connection URL

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12890390#action_12890390 ] 

Carl Steinbach commented on HIVE-1465:
--------------------------------------

I think that the current behavior of 'set' is actually correct. In my opinion you want to be able to see the actual value of the property pre-evaluation, though I do think it makes sense to add a switch to 'set' that allows you to force property substitution.


> hive-site.xml ${user.name} not replaced for local-file derby metastore connection URL
> -------------------------------------------------------------------------------------
>
>                 Key: HIVE-1465
>                 URL: https://issues.apache.org/jira/browse/HIVE-1465
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 0.5.0, 0.6.0
>            Reporter: Carl Steinbach
>
> Seems that for this parameter
> {code}
> <property>
> <name>javax.jdo.option.ConnectionURL</name>
> <value>jdbc:derby:;databaseName=/var/lib/hive/metastore/${user.name}_db;create=true</value>
> <description>JDBC connect string for a JDBC metastore</description>
> </property>
> {code}
> $\{user.name\} is never replaced by the actual user name:
> {code}
> $ ls -la /var/lib/hive/metastore/
> total 24
> drwxrwxrwt 3 root root 4096 Apr 30 12:37 .
> drwxr-xr-x 3 root root 4096 Apr 30 12:25 ..
> drwxrwxr-x 5 hadoop hadoop 4096 Apr 30 12:37 ${user.name}_db
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.