http://wiki.apache.org/hama/GraphModuleInternals
Hama includes the Graph module for vertex-centric graph computations. Hama's Graph APIs allows you to program Google's Pregel style applications with simple programming interface.
Internals
The Graph APIs are implemented on top of Hama BSP framework. It consists of three major classes: VertexInputReader, GraphJob, and GraphJobRunner.
-
VertexInputReader: it is used for parsing and extracting the Vertex structure from arbitrary text and binary data.
-
GraphJob: the primary interface for a user to describe a Graph job to the Hama BSP framework for execution.
-
GraphJobRunner: the BSP program for performing the Vertex's compute() method.
VertexInputReader
The VertexInputReader is the user-defined interface for parsing and extracting the Vertex structure from arbitrary text and binary data. Internally, the loadVertices() method reads the records from assigned split, and then loads the converted Vertex objects by the user-defined VertexInputReader.parseVertex() method into memory Vertices storage.
GraphJob
GraphJob provides some additional Get/Set methods extending the core BSPJob interface for supporting the Graph specific configurations, such as setMaxIteration, setAggregatorClass, setVertexInputReaderClass, and setVertexOutputWriterClass. Rest APIs e.g., InputFormat, OutputFormat etc. are the same with core BSPJob interface.
GraphJobRunner
The GraphJobRunner is the core internal BSP program which is performs vertex computations as defined in Vertex.compute() method, and creates output. It, like other BSP programs, consists of three methods: setup(), cleanup(), and bsp().
- setup() phase: the initialization phase for vertex computations.
- bsp() phase: the main computations of the vertices. The message communications among vertices are also handled by BSP communication interface in this phase.
- cleanup() phase: output write phase after completing the computations of the vertices.
More specifically, below two core methods loadVertices and doSuperstep() are used for loading and processing vertices.
loadVertices
As you can guess, the loadVertices() is in the setup() initialization phase. It reads assigned split data, parses and loads Vertex into VerticesInfo. The current implementation of Vertex computations assumes that Vertices are already sorted by vertexID, for processing memory-efficiently.
doInitialSuperstep and doSuperstep
- Work In Progress.
List of Future Ideas and Challenges
Currently, we use ListVerticesInfo and Collections.sort(vertices).
With improve of memory-based vertices storage, HBase's Scanner or disk-based vertices storage also should be considered in the future.
相关推荐
分布式模式的Hama安装笔记,内容如下: 1.参考“hadoop安装.txt”,完成hadoop的安装。节点信息如下: 192.168.1.160 hadoop-1 192.168.1.161 hadoop-2 192.168.1.162 hadoop-3 2.添加环境变量 在/etc/profile...
【标题】"Hama Core 0.7.1" 是一个开源项目的压缩包,它包含了Hama框架的核心组件。Hama是一个基于Java开发的大数据处理框架,它主要应用于大规模的并行计算,尤其是在图计算和矩阵运算方面。这个0.7.1版本的发布...
### 汉密顿焦虑量表(HAMA)详解 #### 一、概述 汉密顿焦虑量表(Hamilton Anxiety Scale,简称HAMA)是由M. Hamilton于1959年编制而成的精神医学评估工具,旨在量化评价个体的焦虑水平。作为一种广泛应用于临床实践...
Hama-0.6.0是一个重要的开源项目,专为大数据处理设计,尤其在处理大规模图计算任务时表现出色。这个版本包含了安装版和源码,为用户提供了解析、编译以及自定义扩展的可能性。其核心是基于 Bulk Synchronous ...
汉密顿焦虑量表(HAMA)是精神科领域广泛应用的一种心理评估工具,由Max Hamilton于1959年制定。该量表主要用于评估患者焦虑症状的严重程度,它包含14个项目,每个项目采用0至4分的评分法,对应不同的症状严重程度。...
基于Hama并行计算框架的多层级作业调度算法的研究及实现 胡月胜
汉密尔顿焦虑量表(HAMA)是一种用于评估焦虑症状严重程度的心理测量工具,广泛应用于临床心理学和精神科领域。该量表由14个条目组成,每个条目针对一个特定的焦虑症状,通过评分来判断患者的情况。下面我们将详细...
汉密尔顿焦虑量表(HAMA)自推出以来,在心理评估领域发挥了不可替代的作用,它是一种精准的心理测量工具,用于评估个体的焦虑症状严重程度,尤其在临床环境中对患者的心理健康状况进行量化。HAMA作为医学心理学和...
HAMA抑郁量表.pdf
Hama图计算模型 Pi计算编译文件
【基于Hama并行计算框架的多层级作业调度算法研究及实现】 Hama是一个基于Bulk Synchronous Parallel (BSP)模型的分布式并行计算框架,主要用于大规模科学计算。Hama弥补了Hadoop平台的局限性,特别是在图计算领域...
"汉密尔顿焦虑量表HAMA项打印版.pdf" 汉密尔顿焦虑量表(HAMA)是一种常用的评估工具,用于评估个体的焦虑水平。该量表由十四个项目组成,涵盖了焦虑的多个方面,包括情绪、认知、躯体性症状、生殖泌尿神经系统症状...
哈马珠,又称Perler Beads或Hama Beads,是一种流行的创意手工活动材料,尤其是对于儿童和手工爱好者。它们是一系列彩色的小珠子,通过在铁板上排列出特定图案,然后用熨斗热熔成形,可以创造出各种精美的像素艺术...
2. HAMA焦虑量表:HAMA(Hamilton Anxiety Rating Scale)是评估焦虑程度的临床量表,通过一系列问题或观察,来确定患者焦虑症状的严重程度。在本研究中,使用HAMA量表来评估护理干预前后患者焦虑水平的变化。 3. ...
汉密尔顿焦虑量表HAMA(Hamilton Anxiety Rating Scale) 汉密尔顿焦虑量表HAMA是一种常用的评估工具,用于评估焦虑症状的严重性和变化。该量表由 Max Hamilton 在1959年开发,包含14个项目,评定员通过对被评定者...
12. Apache Hama:是一个基于 HDFS 的 BSP(Bulk Synchronous Parallel)计算框架,提供了一个高性能的分布式计算平台。 通过学习这些产品,可以充分发挥 Hadoop 家族产品的威力,进行高速运算和存储,从而实现大...
Arduino库,用于从Ventus W174 / W132(已测试),Auriol H13726,Hama EWS 1500,Meteoscan W155 / W160读取天气数据 此处描述了气象站的传输协议: : 可以通过接收器模块RXB6 / MX-RM-5V进行通信,也可以直接...