hive-env.sh 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. # Set Hive and Hadoop environment variables here. These variables can be used
  17. # to control the execution of Hive. It should be used by admins to configure
  18. # the Hive installation (so that users do not have to set environment variables
  19. # or set command line parameters to get correct behavior).
  20. #
  21. # The hive service being invoked (CLI/HWI etc.) is available via the environment
  22. # variable SERVICE
  23. # Hive Client memory usage can be an issue if a large number of clients
  24. # are running at the same time. The flags below have been useful in
  25. # reducing memory usage:
  26. #
  27. # if [ "$SERVICE" = "cli" ]; then
  28. # if [ -z "$DEBUG" ]; then
  29. # export HADOOP_OPTS="$HADOOP_OPTS -XX:NewRatio=12 -Xms10m -XX:MaxHeapFreeRatio=40 -XX:MinHeapFreeRatio=15 -XX:+UseParNewGC -XX:-UseGCOverheadLimit"
  30. # else
  31. # export HADOOP_OPTS="$HADOOP_OPTS -XX:NewRatio=12 -Xms10m -XX:MaxHeapFreeRatio=40 -XX:MinHeapFreeRatio=15 -XX:-UseGCOverheadLimit"
  32. # fi
  33. # fi
  34. # The heap size of the jvm stared by hive shell script can be controlled via:
  35. #
  36. # export HADOOP_HEAPSIZE=1024
  37. #
  38. # Larger heap size may be required when running queries over large number of files or partitions.
  39. # By default hive shell scripts use a heap size of 256 (MB). Larger heap size would also be
  40. # appropriate for hive server (hwi etc).
  41. # Set HADOOP_HOME to point to a specific hadoop install directory
  42. # HADOOP_HOME=${bin}/../../hadoop
  43. # Hive Configuration Directory can be controlled by:
  44. # export HIVE_CONF_DIR=
  45. # Folder containing extra ibraries required for hive compilation/execution can be controlled by:
  46. # export HIVE_AUX_JARS_PATH=