Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
ghx-label-13
Description
Currently when we start the Hive Metastore or the HiveServer2 via run-hive-server.sh, hive-metastore.out and hive-server2.out will be generated, respectively. The output of executing the hive command will be redirected to the corresponding files mentioned above. However, since ">" is used to redirect the output, the previously generated files will be overwritten every time when the Hive Metastore or the HiveServer2 are restarted and thus some important error message may be lost during the restart.
Recall that the restart of the Hive Metastore or the HiveServer2 occurs several times during the E2E tests. To facilitate the debugging of issues related to the restart, it is better to append the newly produced output to the corresponding output files rather than overwriting the previously generated ones.