1. 猪:
Pig用于大量数据的分析。它是对 MapReduce 的抽象。 Pig 用于在 Hadoop 中执行各种数据操作操作。它提供了 Pig-Latin 语言来编写包含许多内置功能的代码,例如 join、filter 等。 Apache Pig 的两个部分是 Pig-Latin 和 Pig-Engine。 Pig Engine 用于将所有这些脚本转换为特定的地图并减少任务。 Pig 抽象处于更高级别。与 MapReduce 相比,它包含的代码行更少。
2. 色调:
Hue 是一个提供多种服务的 Web 用户界面,Hue 是一个 Hadoop 框架。 Hue 提供了一个 Web 用户界面以及用于浏览 HDFS 的文件路径。 Hue 最重要的功能是作业浏览器、Hadoop shell、用户管理权限、Impala 编辑器、HDFS 文件浏览器、Pig 编辑器、 Hive编辑器、Ozzie Web 界面和 Hadoop API 访问。此 Web UI 布局可帮助用户浏览文件,类似于普通 Windows 用户在其机器上定位文件的布局。 Hue 为编程语言提供了一个 Web 用户界面,这是用户在执行查询时避免语法错误的便捷工具。 Hue 只能使用 Web 浏览器安装或配置。
Pig 和 Hue 的区别:
Pig | Hue |
---|---|
Pig operates on the client side of a cluster. | Hue is a web user interface which provides a number of services and Hue is a Hadoop framework. |
It does not support JDBC. | It supports JDBC. |
Pig is implemented and accessed using a web UI Interface or a command line interface. | Hue is implemented on a web browser where we can access multiple programs installed on Cloudera. |
Pig does not support schema to store data. | Hue supports schema for data insertion in tables. |
It is used by Researchers and Programmers. | It is mainly used by Data Analysts. |
It is used to handle structured and semi-structured data. | It is mainly used to handle structured data. |
It does not support ODBC. | It supports ODBC. |
It supports Avro file format. | It does not support Avro file format. |
Pig uses map-reduce algorithm to process and analyze the data. | Hue provides Web UI editor which can be accessed by Hive and other programming languages. |