Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
artkostm committed Nov 8, 2018
1 parent 4ca3dbc commit a4be465
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,34 @@ Time taken: 60.347 seconds, Fetched: 3 row(s)

### To calculate the longest period of stay of couples with children:

```hive -f ....hql```
```hive -f select_longest_period_of_stay.hql```

Console output:

```shell
[root@sandbox-hdp ~]# hive -f select_longest_period_of_stay.hql
log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.

Logging initialized using configuration in file:/etc/hive/2.6.5.0-292/0/hive-log4j.properties
Query ID = root_20181108152320_b4800353-954c-4642-9bef-e5306b7de22f
Total jobs = 1
Launching Job 1 out of 1
Status: Running (Executing on YARN cluster with App id application_1541682191139_0012)

--------------------------------------------------------------------------------
VERTICES STATUS TOTAL COMPLETED RUNNING PENDING FAILED KILLED
--------------------------------------------------------------------------------
Map 1 .......... SUCCEEDED 1 1 0 0 0 0
Reducer 2 ...... SUCCEEDED 1 1 0 0 0 0
--------------------------------------------------------------------------------
VERTICES: 02/02 [==========================>>] 100% ELAPSED TIME: 290.40 s
--------------------------------------------------------------------------------
OK
390
Time taken: 306.918 seconds, Fetched: 1 row(s)
```

![The longest period of stay of couples with children](./img/created_tables.png "The longest period of stay of couples with children")
![The longest period of stay of couples with children](./img/longest_period_of_stay.png "The longest period of stay of couples with children")

### To calculate top 3 most popular hotels (treat hotel as composite key of continent, country and market) which were not booked:

Expand Down

0 comments on commit a4be465

Please sign in to comment.