diff --git a/README.md b/README.md index 9c149e1..f94b8c5 100644 --- a/README.md +++ b/README.md @@ -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: