I didn't know that -hiveconf is supported. However, from hive -H, double
dashes are seen.
-h <hostname> connecting to Hive Server on remote host
--hiveconf <property=value> Use value for given property
--hivevar <key=value> Variable subsitution to apply to hive
Thanks,
Xuefu
On Fri, Mar 7, 2014 at 6:00 PM, Edward Capriolo <[email protected]>wrote:
> I was not around when this change was made but I think we should have kept
> the old - dash version. We should consider adding it back.
>
>
> On Fri, Mar 7, 2014 at 8:56 PM, Lefty Leverenz <[email protected]
> >wrote:
>
> > Xuefu just fixed the AdminManual Configuration
> > wiki<
> >
> https://cwiki.apache.org/confluence/display/Hive/AdminManual+Configuration
> > >,
> > changing bin/hive -hiveconf ... to --hiveconf, so I grepped the wiki
> > archive and found many more cases of single-dash hiveconf than
> double-dash:
> >
> > > grep -i '\-\-hiveconf' * | wc
> > 2 16 178
> > > grep -i '\-hiveconf' * | wc
> > 24 282 4054
> >
> > A bit of googling also showed both versions of the option. So two
> > questions:
> >
> >
> > 1. Should I change all cases of single-dash hiveconf to double-dash in
> > the wiki?
> > 2. Should a single-dash option be created to accommodate all the wrong
> > information on the Internet and in books (including *Hadoop: The
> > Definitive Guide* and chapters 9 & 12 of *Programming Hive*)?
> >
> >
> > -- Lefty
> >
>