1.猪:
Pig用于分析大量数据。它是MapReduce的抽象。 Pig用于在Hadoop中执行各种数据操作操作。它提供了Pig-Latin语言来编写包含许多内置函数(如join,filter等)的代码。Apache Pig的两个部分是Pig-Latin和Pig-Engine。 Pig Engine用于将所有这些脚本转换为特定的映射并减少任务。猪的抽象处于更高的水平。与MapReduce相比,它包含的代码行更少。
2.色相:
Hue是提供许多服务的Web用户界面,而Hue是Hadoop框架。 Hue提供了一个Web用户界面以及浏览HDFS的文件路径。 Hue的最重要功能是作业浏览器,Hadoop外壳,用户管理权限,Impala编辑器,HDFS文件浏览器,Pig编辑器, Hive编辑器,Ozzie Web界面和Hadoop API Access。这种Web UI布局可帮助用户浏览文件,类似于普通Windows用户在其计算机上定位文件的方式。 Hue提供了一种用于编程语言的Web用户界面,这是一种方便的工具,可让用户在执行查询时避免语法错误。只能使用Web浏览器来安装或配置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. |