[
https://issues.apache.org/jira/browse/HCATALOG-256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210688#comment-13210688
]
Sushanth Sowmyan commented on HCATALOG-256:
-------------------------------------------
+1, with one comment - is the exit 0 really needed given that it's in an
else-if structure anyway? That'll prevent bin/hcat from being run with a "." or
through "source", although it's arguable that bin/hcat really has no need to be
run in that manner.
For eg:
--
tundra:t sush$ ./c.sh
1
blah
2
blah
3
blah
4
blah
tundra:t sush$ cat c.sh
#!/bin/bash
echo 1
./a.sh
echo 2
./b.sh
echo 3
. a.sh
echo 4
. b.sh
echo 5
source a.sh
echo 6
source b.sh
echo 7
tundra:t sush$ cat a.sh
#!/bin/bash
echo blah
tundra:t sush$ cat b.sh
#!/bin/bash
echo blah
exit 0;
--
> HCatalog should provide its classpath to tools
> ----------------------------------------------
>
> Key: HCATALOG-256
> URL: https://issues.apache.org/jira/browse/HCATALOG-256
> Project: HCatalog
> Issue Type: New Feature
> Components: client
> Affects Versions: 0.4
> Reporter: Alan Gates
> Assignee: Alan Gates
> Fix For: 0.4
>
> Attachments: hcat_classpath.patch
>
>
> Users who wish to invoke HCatalog directly (without going through bin/hcat)
> still need to know the proper classpath to use before invoking HCatalog. We
> can add a -classpath option to the hcat executable (like Hadoop has) so users
> can invoke this and determine the classpath they should set.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira