Skip to main content
nsabharwal
Gold ⭐️
Feb 10, 2016 9:54 PM UTC

HiveWebInterface - Example

  • Oct 5, 2026 9:42 AM UTC
  • 2 replies
  • 3174 views
  • Translate All

Command: curl -s -d execute="select+*+from+nstest;" -d statusdir="1p" 'http://localhost:50111/templeton/v1/hive?user.name=hive'

1981-screen-shot-2016-02-10-at-85138-am.png

Let's insert some data and test again

1982-screen-shot-2016-02-10-at-85305-am.png

Wait for job to finish and the directory will show up on HDFS

You can monitor the job from RM UI

1983-screen-shot-2016-02-10-at-85346-am.png

More details: https://cwiki.apache.org/confluence/display/Hive/HiveWebInterface

2 replies

sunile_manjee
Gold ⭐️
Gold ⭐️
Feb 11, 2016 12:09 PM UTC

@Neeraj Sabharwal I like this. Can you explain the reason for -d statusdir="1p"?

Translate
klksrinivas
Gold ⭐️
Feb 11, 2016 12:56 PM UTC
@Sunile Manjee

-d statusdir=<> this option is used to specify the hdfs directory to store the log files.( stdout,stderr) for the executed job.

Translate