Skip to content

Commit

Permalink
Add missing run query example for Hive/Tez in index.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
concretevitamin committed Jul 23, 2014
1 parent 9eaad57 commit 92d75f4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runner/run_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def parse_args():
hosts = opts.impala_hosts.split(",")
print >> stderr, "Impala hosts:\n%s" % "\n".join(hosts)
opts.impala_hosts = hosts

if opts.hive or opts.hive_cdh:
opts.hive_slaves = opts.hive_slaves.split(",")
print >> stderr, "Hive slaves:\n%s" % "\n".join(opts.hive_slaves)
Expand Down Expand Up @@ -782,7 +783,9 @@ def ensure_spark_stopped_on_slaves(slaves):
def main():
global opts
opts = parse_args()

print "Query %s:" % opts.query_num

if opts.impala:
results, contents = run_impala_benchmark(opts)
if opts.shark:
Expand Down
9 changes: 9 additions & 0 deletions site/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,15 @@ $> ./prepare-benchmark.sh
--scale-factor=5
{% endhighlight %}
</td><td>
{% highlight bash %}
$> ./run-query.sh
--hive
[--tez]
--hive-host [MASTER REPORTED BY SETUP SCRIPT]
--hive-slaves [COMMA SEPARATED LIST OF SLAVES]
--hive-identity-file [SSH PRIVATE KEY]
--query-num=[QUERY NUM]
{% endhighlight %}
</td><td>
</td></tr>

Expand Down

0 comments on commit 92d75f4

Please sign in to comment.