In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
What are the commands of Hive CLI? for this question, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
These commands can be executed directly in cli or beeline.
Quit
Exit
Use quit or exit to leave the interactive shell.
Reset
Resets the configuration to the default values (as of Hive 0.10: see HIVE-3202). Any configuration parameters that were set using the set command or-hiveconf parameter in hive commandline will get reset to default value.
Note that this does not apply to configuration parameters that were set in set command using the "hiveconf:" prefix for the key name (for historic reasons).
Set =
Sets the value of a particular configuration variable (key).
Note: If you misspell the variable name, the CLI will not show an error.
Set
Prints a list of configuration variables that are overridden by the user or Hive.
Set-v
Prints all Hadoop and Hive configuration variables.
Add FILE [S] *
Add JAR [S] *
Add ARCHIVE [S] *
Adds one or more files, jars, or archives to the list of resources in the distributed cache. See Hive Resources for more information.
Add FILE [S] *
Add JAR [S] *
Add ARCHIVE [S] * As of Hive 1.2.0, adds one or more files, jars or archives to the list of resources in the distributed cache using anIvy URL of the form ivy://group:module:version?query_string. See Hive Resources for more information.
List FILE [S]
List JAR [S]
List ARCHIVE [S]
Lists the resources already added to the distributed cache. See Hive Resources for more information.
List FILE [S] *
List JAR [S] *
List ARCHIVE [S] *
Checks whether the given resources are already added to the distributed cache or not. See Hive Resources for more information.
Delete FILE [S] *
Delete JAR [S] *
Delete ARCHIVE [S] *
Removes the resource (s) from the distributed cache.
Delete FILE [S] *
Delete JAR [S] *
Delete ARCHIVE [S] * As of Hive 1.2.0, removes the resource (s) which were added using the from the distributed cache. See Hive Resources for more information.
!
Executes a shell command from the Hive shell.
Dfs
Executes a dfs command from the Hive shell.
Executes a Hive query and prints results to standard output.
Source FILE
Executes a script file inside the CLI.
Compile ``AS GROOVY NAMED
This allows inline Groovy code to be compiled and be used as a UDF (as of Hive 0.13.0). For a usage example, see Nov. 2013 Hive Contributors Meetup Presentations-Using Dynamic Compilation with Hive.
Sample Usage:
Hive > set mapred.reduce.tasks=32; hive > set; hive > select a.* from tab1; hive >! ls; hive > dfs-ls; the answers to the questions about Hive CLI commands are shared here. I hope the above content can be of some help to everyone. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.