hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Sichi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-1405) Implement a .hiverc startup file
Date Thu, 17 Jun 2010 23:34:25 GMT

    [ https://issues.apache.org/jira/browse/HIVE-1405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880002#action_12880002

John Sichi commented on HIVE-1405:

I'm thinking of addressing the requirement by adding a -i option to explicitly specify an
initialization script.  This could be used multiple times to invoke multiple initialization
scripts in the order they appear on the hive command line, e.g.

hive -i /everyone/hiveinit.sql -i /home/jvs/myhiveinit.sql -f test.sql

The new -i option would be compatible with -f, -e, and with interactive console (no -f/-e).
 The -i scripts would always be run before the -e/-f.

This allows wrapper scripts to build up the global/local .bashrc functionality in installation-specific
ways; I don't think we want to dictate that within Hive itself.

Would this be good enough?

> Implement a .hiverc startup file
> --------------------------------
>                 Key: HIVE-1405
>                 URL: https://issues.apache.org/jira/browse/HIVE-1405
>             Project: Hadoop Hive
>          Issue Type: New Feature
>            Reporter: Jonathan Chang
> When deploying hive, it would be nice to have a .hiverc file containing statements that
would be automatically run whenever hive is launched.  This way, we can automatically add
JARs, create temporary functions, set flags, etc. for all users quickly. 
> This should ideally be set up like .bashrc and the like with a global version and a user-local

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

View raw message