首页 \ 问答 \ 在Hadoop中使用HBase而不是Hive的目的[重复](Purpose of using HBase in Hadoop instead of Hive [duplicate])

在Hadoop中使用HBase而不是Hive的目的[重复](Purpose of using HBase in Hadoop instead of Hive [duplicate])

这个问题在这里已经有了答案:

在我的项目中,我们使用Hadoop 2SparkScalaScala是编程语言, Spark在这里用于分析。 我们都在使用HiveHBase 。 我可以使用Hive访问HDFS文件等所有细节。 但我的困惑是 -

  1. 当我能够使用Hive执行所有作业时,那么为什么HBase需要存储数据。 这不是一个开销吗?
  2. HIVEHBase的功能是什么?
  3. 如果我们只使用Hive,那应该是什么问题?

任何人都可以请让我知道。


This question already has an answer here:

In my project, we are using Hadoop 2, Spark, Scala. Scala is the programming language and Spark is using here for analysing. we are using Hive and HBase both. I can access all details like file etc. of HDFS using Hive. But my confusions are -

  1. When I can able to performed all jobs using Hive, Then why HBase is required to store the data. Is it not an overhead?
  2. What are the functionality of HIVE and HBase?
  3. If we only used Hive, Then what should be the problem?

Can anyone please let me know.


原文:https://stackoverflow.com/questions/41378511
更新时间:2022-12-19 11:12

最满意答案

使用input.next()而不是input.nextLine() ,原因是nextLine()方法会返回缓冲区中的下一行,所以每次都不会要求您输入更多信息,请查看Scanner文档http://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html


use input.next()instead of input.nextLine() the reason is that the nextLine() method will return the next line in the buffer, so it won't ask you for an input every time for more information check the Scanner documentation http://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html

相关问答

更多