- 嵌入式Linux的Qt
YottaYuan
嵌入式Linux的Qt在嵌入式Linux系统上,可以使用多个平台插件:EGLFS,LinuxFB,DirectFB或Wayland。但是,这些插件的可用性取决于Qt的配置方式。EGLFS是许多主板上的默认插件。如果不合适,请使用QT_QPA_PLATFORM环境变量来请求另一个插件。另外,对于快速测试,请使用-platform具有相同语法的命令行参数。注意:从Qt5.0开始,Qt不再具有自己的窗口
- poky: PACKAGECONFIG的用法
xiaofeng_yan
Pokyfeatures
PACKAGECONFIG是用来区分一个软件包在不同的条件下,配置依赖和编译选项例如:PACKAGECONFIG??="${@base_contains('DISTRO_FEATURES','x11','x11','',d)}\${@base_contains('DISTRO_FEATURES','directfb','directfb','',d)}"PACKAGECONFIG[x11]="--
- 嵌入式 DirectFB
xasylt
QTDirectFB
转自:原文地址DirectFB常用接口1.概述================本文主要研究DirectFB及其向上向下的接口,顺带讲一下QT搭配DirectFB使用的一些笔记。其他,如DirectFB的内部结构、Qt的内部结构、及其他GUI系统如android不在本文讨论范围内。本文会设计一些DirectFB的2D加速函数介绍,3D加速不再本文讨论范围内。================桌面GUI
- DirectFB内存分配与管理:surface pool
liuysheng
DirectFB
1.1版本之前,DFB只有基本的系统内存概念,即使用局部或共享内存;或者视频内存概念,即固定的物理地址和一定大小的连续的内存块,该内存直接由CPU映射或者由DFB内置的内存管理器SurfaceManager管理。SurfaceManager是一个一维的内存管理器,它会踢出(kick-out)过时的(即不再需要的)内存。这些内存一般是本地备份的内存。只有很少的情况,系统或驱动模块可以控制或自己实现内
- DirectFB教程导读-在屏幕中心画一条横线
zjr19850103
DFB
#include//C库函数#include//UNIX标准函数,与系统相关#include//directfb库函数staticIDirectFB*dfb=NULL;//directfb入口,最高接口staticIDirectFBSurface*primary=NULL;//平面接口对象,若CooerativeLevel设为DFSCL_FULLSCREEN,则为首层平面staticintscre
- DirectFB简单示例
wangjijian
Linux嵌入式
在上一篇文章中启动好了framebuffer,现在可以用这样一个简单的例子来检验下效果。来自DirectFB官方网站的简单程序,在屏幕上画一条线。编译后,执行成功了。Simplefullscreenapplicationthatdrawsahorizontalline.代码如下:#include#include#includestaticIDirectFB*dfb=NULL;staticIDire
- 移植SDL2.0到嵌入式开发板过程
疯狂的蘑菇
SDLlinux
移植SDL2.0到210开发板,正在进行中,隔一段时间把文章写全,下面是调试中用的命令,每实验一次编译都得花10多分钟实验平台:tiny210要把SDL移植到开发板上显示图片或者支持事件响应,要先移植directfb库,而SDL2的源码文档里说了支持的directFB版本为1.1.01.2.x和1.3.0,这里我选择的是1.2.7directfb1.2.7,下载地址,http://download
- linux下僵尸进程(Defunct进程)的产生与避免
Enockipp
linuxlinux僵尸进程Defunct进程僵尸进程产生
在测试基于DirectFB+Gstreamer的视频联播系统的一个Demo的时候,其中大量使用system调用的语句,例如在menu代码中的system("./play"),而且多次执行,这种情况下,在ps-ef列表中出现了大量的defunct进程,对程序的运行时有害的。按说system的源码中应该已经包含了wait,但也不能排除开发板上这个版本的system中可能没有wait,总之,开发板上在调
- 终于在我的s3c2440板子上用上了directfb+gtk了
aishen944
linuxgtkcpathbuildfunctionfile
请尊重著作人的劳动果实,引用请说明出处及原创作者联系方式:aishen944-163.com谢谢!对于我这个不满足现状的人来说,如果能够用现有的主流的开源的GUI来做嵌入式开发,真的很有成就感,想用minigui吧,结果还要买许可证,晕,这段日子在经历了失败失败再失败的基础上终于在gtk+在arm平台上的移植迈出了重要一步,现把心得体会及编译过程写出来,这些只是针对我的机器上的编译环境设置的,大家
- 内核中的多点触摸协议文档 Multi-touch (MT) Protocol
M_Gavin
Android
转自:http://www.arm9home.net/read.php?tid=24754点触摸的信息,是触摸屏这样的触摸设备向inputcore上报MT消息传递的。这些MT消息,可以通过设备文件的接口,被应用程序读取到。整个消息传递过程,以及上层应用程序(DirectFB/Xorg/EFL/Tslib)的支持情况,还没有完全弄清楚。等弄清楚了再和大家分享。将multi-touch-protoco
- qt 5 交叉编译方法
rannar
./configure\-prefix../arm-qt-output\-xplatformlinux-aarch64-gnu-g++\-qt-libpng\-qt-libjpeg\-static\-no-xcb\-no-opengl\-no-eglfs\-no-direct2d\-no-directfb\-no-eglfs\-no-gbm\-no-kms\-no-mirclient\-no-xc
- ubuntu下启用FrameBuffer模块
wangjijian
Linux嵌入式
Ubuntu安装好后,想用DirectFB进行程序设计,发现没有/etc下并没有fb0设备,如何添加这个设备,Google了很多资料都不行,终于找到下面这个资料,成功的添加上了fb0fb11.编辑/etc/initramfs-tools/modules,在其中加入:fbconvesafbvga16fb2.编辑/etc/modprobe.d/blacklist-framebuffer,注释掉以下两行
- ubuntu 交叉编译过程
无花无酒,天涯人
ubuntu交叉编译过程
以下是参考DirectFB中文社区中几个贴子的步骤,在自己的机子上做了些更改,还没进行测试,只是编译通过,有空再加到开发板上#########################################################################主机开发环境是ubuntu8.04目标机是sbc2410交叉编译器是3.4.1安装目录选在/data/gtk用到以下源码包:atk
- Qt 中链接Directfb
myaccella
Linux编程
1.修改qmake.conf文件,用如下方法修改:$(callQT_QMAKE_SET,QMAKE_CC,$(TARGET_CC),$(@D))$(callQT_QMAKE_SET,QMAKE_CXX,$(TARGET_CXX),$(@D))$(callQT_QMAKE_SET,QMAKE_LINK,$(TARGET_CXX),$(@D))$(callQT_QMAKE_SET,QMAKE_LINK
- GNU C __attribute__ 机制简介
weixin_33770878
摘要:在学习linux内核代码及一些开源软件的源码(如:DirectFB),经常可以看到有关__attribute__的相关使用。本文结合自己的学习经历,较为详细的介绍了__attribute__相关语法及其使用。---------------------------------------------------------声明:此文为原创,欢迎转载,转载请保留如下信息作者:聂飞(afreez)
- Linux图形界面中客户端、服务器、窗口管理器之间的关系
iteye_20954
很多LINUX初学者在学习linux图形方面的知识时会遇到一些概念,如:X、X11、Xfree86、WM、KDE、GNOME、QT、QT/E、Qtopia、DirectFB、Framebuffer、显卡加速驱动等等。理解它们之间是什么关系,对我们学习来说是非常重要的。写这篇文章的目的,就是想让大家明晰这些概念及它们之间的关系。(部分内容引用网络上的一些描述比较清晰的内容)一、Linux操作系统和图
- 嵌入式linux GUI--DirectFB + GTK至尊秘笈
afantii
GUI
嵌入式linuxGUI--DirectFB+GTK至尊秘笈
[email protected]版权申明:本文档一切权利归本人(
[email protected])所有,用于商业用途徐征得本人同意,如无法联系到本人,须征得www.directfb.com.cn所有者同意;用于非商业用途的,无需任何许可,但请尊重本人的署名权,并注明出处www.directf
- Freetype学习笔记
李先静
Freetype学习笔记转载时请注明出处和作者联系方式:http://blog.csdn.net/absurd作者联系方式:LiXianJing更新时间:2006-12-19GTK+(基于DirectFB)的字体绘制是通过pango+freetype+fontconfig三者协作来完成的,其中,fontconfig负责字体的管理和配置,freetype负责单个字符的绘制,pango则完成对文字的排
- MiniGUI和其他嵌入式图形系统的优势比较 - 个人见解
测试九宸
MiniGUI
大家知道嵌入式领域是一个很丰富的领域,包括诸多的嵌入式操作系统和嵌入式图形支撑系统,所以除了MiniGUI之外,还有一些其他的嵌入式GUI,比如QT/E,micwindows,DirectFB+GTK,fltk,openGUI,TILCON等等,如下是MiniGUI和这些GUI之间的一些对比:和qt对比:1、QT当初是为PC设计的桌面环境,而且架构过于复杂,很难进行系统裁剪,扩充、定制和移植,尽管
- 一个新手程序员的项目经验
iteye_17686
刚开始进入公司是在3月份,做的一份工作是DirectFB的移植,前后花了一个月的时间。就是做这个项目的时候我知道了在学校和社会的不同了,很简单的一个例子。移植成功后,在跑测试用例的时候发现有几个测试用例运行不成功。这要是在学校谁还会管他呢,但是在公司的做法是去看代码找出为什么会出现这个错误。DirectFB移植完成以后,导师突然说是他邮件给看错了,所以之前移植的DirectFB并不能派上用场。但是
- Qt5.7 Qt for Embedded Linux
#冷风那个吹#
qt
从Qt5.0开始,Qt不再包含自己的视窗系统了(QWS)。对于单屏幕的情况,使用QtPlatformAbstraction是一个很好的选择。多屏的情况可以通过Wayland实现。有许多跨平台的插件可以使用:EGLFS,LinuxFB,KMS,DirectFB,Wayland。可以通过配置Qt使用这些插件。默认的平台插件是特殊设备。例如,许多板子默认使用eglfs。如果默认的不合适,可以通过修改QT
- linux启动后自动登录并运行自定义图形界面程序
Li Shawn
linux
在《UbuntuCTRL+ALT+F1~F6进入命令模式后不支持中文显示的解决办法》一文中提到linux启动在以后运行一个独占显示器的图形程序的两种办法。1、不启动xserver,使用fb或者directfb图形模式;2、启动xserver不启动桌面系统。第一种方法性能并不一定高,因为支持fb的显卡驱动可能找不到,就是用上显卡驱动了也需要CPU大量参与。另外如果用这种方式可供选择的图形程序开发技术
- linux启动后自动登录并运行自定义图形界面程序
tgis
在《UbuntuCTRL+ALT+F1~F6进入命令模式后不支持中文显示的解决办法》一文中提到linux启动在以后运行一个独占显示器的图形程序的两种办法。1、不启动xserver,使用fb或者directfb图形模式;2、启动xserver不启动桌面系统。第一种方法性能并不一定高,因为支持fb的显卡驱动可能找不到,就是用上显卡驱动了也需要CPU大量参与。另外如果用这种方式可供选择的图形程序开发技术
- glib: 恶梦终结者 - Linux mobile development - 博客频道 - CSDN.NET
mobile
glib: 恶梦终结者 - Linux mobile development - 博客频道 - CSDN.NET
glib: 恶梦终结者
分类:
50.GTK+/DirectFB
2006-02-08 21:58
4328人阅读
评论(7)
收藏
举报
gnome是
- GTK、GDK、GLIB三者的关系 - 阿堂的专栏 - 博客频道 - CSDN.NET
.net
GTK、GDK、GLIB三者的关系 - 阿堂的专栏 - 博客频道 - CSDN.NET
GTK、GDK、GLIB三者的关系
分类:
GTK+/DirectFB学习笔记
2008-09-11 19:48
6297人阅读
评论(6)
收藏
举报
什么是GDK?
&nbs
- GTK+/DirectFB PC模拟运行环境
gtk
GTK+/DirectFB PC模拟运行环境
转载时请注明出处和作者联系方式
作者联系方式:李先静 <xianjimli at hotmail dot com>
GTK+/DirectFB不但可以运行在frambebuffer上,而且可以运行在其它GUI之上,比如像SDL和X11等等,因此在PC上建立模拟运行环境是非常简单的。不过有一个小小麻烦一直困扰着我们,直到最近才解决这
- pygtk手记(1)
gtk
GTK+使用C语言开发,但是其设计者使用面向对象技术。 也提供了C++(gtkmm)、Perl、Ruby、Java和Python(PyGTK)绑定,其他的绑定有Ada、D、Haskell、PHP和所有的.NET编程语言,GTK+ 灵活性也很强,最早应用于X Window System,如今已移植至其他平台,诸如Microsoft Windows、DirectFB,以及Quartz在Mac OS X
- sink相关
in
首先介绍一下Gstreamer支持的几种video sink,v4lsink, v4l2sink:video for linux的输出ximagesink:使用XWindow输出,基本都支持xvimagesink:使用XVideo extension输出,在ubuntu下要装一大堆库才支持sdlvideosink:使用sdl库输出,需要装sdl库dfbvideosink:用DirectFB库输出,
- Cairo
AIR
Cairo是2D图形库(2D Graphic Library),支持多种输出,例如:X window(通过Xlib和XCB),Quartz,Win32,image buffers,PostScript,PDF,SVG file等。处于测试阶段的输出包括OpenGL,BeOS,OS/2,DirectFB。
Cairo的设计目标:在所有的输出媒介上提供一致性的输出。并且能用硬件加速就用硬件加速。
- gtk directfb 交叉编译过程
gtk
直接把编译脚本贴出来吧,仅供参考。
#Packages list
#atk-1.26.0.tar.bz2 expat_2.0.1.orig.tar.gz glib-2.21.5.tar.bz2 &
- 算法 单链的创建与删除
换个号韩国红果果
c算法
先创建结构体
struct student {
int data;
//int tag;//标记这是第几个
struct student *next;
};
// addone 用于将一个数插入已从小到大排好序的链中
struct student *addone(struct student *h,int x){
if(h==NULL) //??????
- 《大型网站系统与Java中间件实践》第2章读后感
白糖_
java中间件
断断续续花了两天时间试读了《大型网站系统与Java中间件实践》的第2章,这章总述了从一个小型单机构建的网站发展到大型网站的演化过程---整个过程会遇到很多困难,但每一个屏障都会有解决方案,最终就是依靠这些个解决方案汇聚到一起组成了一个健壮稳定高效的大型系统。
看完整章内容,
- zeus持久层spring事务单元测试
deng520159
javaDAOspringjdbc
今天把zeus事务单元测试放出来,让大家指出他的毛病,
1.ZeusTransactionTest.java 单元测试
package com.dengliang.zeus.webdemo.test;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import
- Rss 订阅 开发
周凡杨
htmlxml订阅rss规范
RSS是 Really Simple Syndication的缩写(对rss2.0而言,是这三个词的缩写,对rss1.0而言则是RDF Site Summary的缩写,1.0与2.0走的是两个体系)。
RSS
- 分页查询实现
g21121
分页查询
在查询列表时我们常常会用到分页,分页的好处就是减少数据交换,每次查询一定数量减少数据库压力等等。
按实现形式分前台分页和服务器分页:
前台分页就是一次查询出所有记录,在页面中用js进行虚拟分页,这种形式在数据量较小时优势比较明显,一次加载就不必再访问服务器了,但当数据量较大时会对页面造成压力,传输速度也会大幅下降。
服务器分页就是每次请求相同数量记录,按一定规则排序,每次取一定序号直接的数据
- spring jms异步消息处理
510888780
jms
spring JMS对于异步消息处理基本上只需配置下就能进行高效的处理。其核心就是消息侦听器容器,常用的类就是DefaultMessageListenerContainer。该容器可配置侦听器的并发数量,以及配合MessageListenerAdapter使用消息驱动POJO进行消息处理。且消息驱动POJO是放入TaskExecutor中进行处理,进一步提高性能,减少侦听器的阻塞。具体配置如下:
- highCharts柱状图
布衣凌宇
hightCharts柱图
第一步:导入 exporting.js,grid.js,highcharts.js;第二步:写controller
@Controller@RequestMapping(value="${adminPath}/statistick")public class StatistickController { private UserServi
- 我的spring学习笔记2-IoC(反向控制 依赖注入)
aijuans
springmvcSpring 教程spring3 教程Spring 入门
IoC(反向控制 依赖注入)这是Spring提出来了,这也是Spring一大特色。这里我不用多说,我们看Spring教程就可以了解。当然我们不用Spring也可以用IoC,下面我将介绍不用Spring的IoC。
IoC不是框架,她是java的技术,如今大多数轻量级的容器都会用到IoC技术。这里我就用一个例子来说明:
如:程序中有 Mysql.calss 、Oracle.class 、SqlSe
- TLS java简单实现
antlove
javasslkeystoretlssecure
1. SSLServer.java
package ssl;
import java.io.FileInputStream;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.security.KeyStore;
import
- Zip解压压缩文件
百合不是茶
Zip格式解压Zip流的使用文件解压
ZIP文件的解压缩实质上就是从输入流中读取数据。Java.util.zip包提供了类ZipInputStream来读取ZIP文件,下面的代码段创建了一个输入流来读取ZIP格式的文件;
ZipInputStream in = new ZipInputStream(new FileInputStream(zipFileName));
&n
- underscore.js 学习(一)
bijian1013
JavaScriptunderscore
工作中需要用到underscore.js,发现这是一个包括了很多基本功能函数的js库,里面有很多实用的函数。而且它没有扩展 javascript的原生对象。主要涉及对Collection、Object、Array、Function的操作。 学
- java jvm常用命令工具——jstatd命令(Java Statistics Monitoring Daemon)
bijian1013
javajvmjstatd
1.介绍
jstatd是一个基于RMI(Remove Method Invocation)的服务程序,它用于监控基于HotSpot的JVM中资源的创建及销毁,并且提供了一个远程接口允许远程的监控工具连接到本地的JVM执行命令。
jstatd是基于RMI的,所以在运行jstatd的服务
- 【Spring框架三】Spring常用注解之Transactional
bit1129
transactional
Spring可以通过注解@Transactional来为业务逻辑层的方法(调用DAO完成持久化动作)添加事务能力,如下是@Transactional注解的定义:
/*
* Copyright 2002-2010 the original author or authors.
*
* Licensed under the Apache License, Version
- 我(程序员)的前进方向
bitray
程序员
作为一个普通的程序员,我一直游走在java语言中,java也确实让我有了很多的体会.不过随着学习的深入,java语言的新技术产生的越来越多,从最初期的javase,我逐渐开始转变到ssh,ssi,这种主流的码农,.过了几天为了解决新问题,webservice的大旗也被我祭出来了,又过了些日子jms架构的activemq也开始必须学习了.再后来开始了一系列技术学习,osgi,restful.....
- nginx lua开发经验总结
ronin47
使用nginx lua已经两三个月了,项目接开发完毕了,这几天准备上线并且跟高德地图对接。回顾下来lua在项目中占得必中还是比较大的,跟PHP的占比差不多持平了,因此在开发中遇到一些问题备忘一下 1:content_by_lua中代码容量有限制,一般不要写太多代码,正常编写代码一般在100行左右(具体容量没有细心测哈哈,在4kb左右),如果超出了则重启nginx的时候会报 too long pa
- java-66-用递归颠倒一个栈。例如输入栈{1,2,3,4,5},1在栈顶。颠倒之后的栈为{5,4,3,2,1},5处在栈顶
bylijinnan
java
import java.util.Stack;
public class ReverseStackRecursive {
/**
* Q 66.颠倒栈。
* 题目:用递归颠倒一个栈。例如输入栈{1,2,3,4,5},1在栈顶。
* 颠倒之后的栈为{5,4,3,2,1},5处在栈顶。
*1. Pop the top element
*2. Revers
- 正确理解Linux内存占用过高的问题
cfyme
linux
Linux开机后,使用top命令查看,4G物理内存发现已使用的多大3.2G,占用率高达80%以上:
Mem: 3889836k total, 3341868k used, 547968k free, 286044k buffers
Swap: 6127608k total,&nb
- [JWFD开源工作流]当前流程引擎设计的一个急需解决的问题
comsci
工作流
当我们的流程引擎进入IRC阶段的时候,当循环反馈模型出现之后,每次循环都会导致一大堆节点内存数据残留在系统内存中,循环的次数越多,这些残留数据将导致系统内存溢出,并使得引擎崩溃。。。。。。
而解决办法就是利用汇编语言或者其它系统编程语言,在引擎运行时,把这些残留数据清除掉。
- 自定义类的equals函数
dai_lm
equals
仅作笔记使用
public class VectorQueue {
private final Vector<VectorItem> queue;
private class VectorItem {
private final Object item;
private final int quantity;
public VectorI
- Linux下安装R语言
datageek
R语言 linux
命令如下:sudo gedit /etc/apt/sources.list1、deb http://mirrors.ustc.edu.cn/CRAN/bin/linux/ubuntu/ precise/ 2、deb http://dk.archive.ubuntu.com/ubuntu hardy universesudo apt-key adv --keyserver ke
- 如何修改mysql 并发数(连接数)最大值
dcj3sjt126com
mysql
MySQL的连接数最大值跟MySQL没关系,主要看系统和业务逻辑了
方法一:进入MYSQL安装目录 打开MYSQL配置文件 my.ini 或 my.cnf查找 max_connections=100 修改为 max_connections=1000 服务里重起MYSQL即可
方法二:MySQL的最大连接数默认是100客户端登录:mysql -uusername -ppass
- 单一功能原则
dcj3sjt126com
面向对象的程序设计软件设计编程原则
单一功能原则[
编辑]
SOLID 原则
单一功能原则
开闭原则
Liskov代换原则
接口隔离原则
依赖反转原则
查
论
编
在面向对象编程领域中,单一功能原则(Single responsibility principle)规定每个类都应该有
- POJO、VO和JavaBean区别和联系
fanmingxing
VOPOJOjavabean
POJO和JavaBean是我们常见的两个关键字,一般容易混淆,POJO全称是Plain Ordinary Java Object / Plain Old Java Object,中文可以翻译成:普通Java类,具有一部分getter/setter方法的那种类就可以称作POJO,但是JavaBean则比POJO复杂很多,JavaBean是一种组件技术,就好像你做了一个扳子,而这个扳子会在很多地方被
- SpringSecurity3.X--LDAP:AD配置
hanqunfeng
SpringSecurity
前面介绍过基于本地数据库验证的方式,参考http://hanqunfeng.iteye.com/blog/1155226,这里说一下如何修改为使用AD进行身份验证【只对用户名和密码进行验证,权限依旧存储在本地数据库中】。
将配置文件中的如下部分删除:
<!-- 认证管理器,使用自定义的UserDetailsService,并对密码采用md5加密-->
- mac mysql 修改密码
IXHONG
mysql
$ sudo /usr/local/mysql/bin/mysqld_safe –user=root & //启动MySQL(也可以通过偏好设置面板来启动)$ sudo /usr/local/mysql/bin/mysqladmin -uroot password yourpassword //设置MySQL密码(注意,这是第一次MySQL密码为空的时候的设置命令,如果是修改密码,还需在-
- 设计模式--抽象工厂模式
kerryg
设计模式
抽象工厂模式:
工厂模式有一个问题就是,类的创建依赖于工厂类,也就是说,如果想要拓展程序,必须对工厂类进行修改,这违背了闭包原则。我们采用抽象工厂模式,创建多个工厂类,这样一旦需要增加新的功能,直接增加新的工厂类就可以了,不需要修改之前的代码。
总结:这个模式的好处就是,如果想增加一个功能,就需要做一个实现类,
- 评"高中女生军训期跳楼”
nannan408
首先,先抛出我的观点,各位看官少点砖头。那就是,中国的差异化教育必须做起来。
孔圣人有云:有教无类。不同类型的人,都应该有对应的教育方法。目前中国的一体化教育,不知道已经扼杀了多少创造性人才。我们出不了爱迪生,出不了爱因斯坦,很大原因,是我们的培养思路错了,我们是第一要“顺从”。如果不顺从,我们的学校,就会用各种方法,罚站,罚写作业,各种罚。军
- scala如何读取和写入文件内容?
qindongliang1922
javajvmscala
直接看如下代码:
package file
import java.io.RandomAccessFile
import java.nio.charset.Charset
import scala.io.Source
import scala.reflect.io.{File, Path}
/**
* Created by qindongliang on 2015/
- C语言算法之百元买百鸡
qiufeihu
c算法
中国古代数学家张丘建在他的《算经》中提出了一个著名的“百钱买百鸡问题”,鸡翁一,值钱五,鸡母一,值钱三,鸡雏三,值钱一,百钱买百鸡,问翁,母,雏各几何?
代码如下:
#include <stdio.h>
int main()
{
int cock,hen,chick; /*定义变量为基本整型*/
for(coc
- Hadoop集群安全性:Hadoop中Namenode单点故障的解决方案及详细介绍AvatarNode
wyz2009107220
NameNode
正如大家所知,NameNode在Hadoop系统中存在单点故障问题,这个对于标榜高可用性的Hadoop来说一直是个软肋。本文讨论一下为了解决这个问题而存在的几个solution。
1. Secondary NameNode
原理:Secondary NN会定期的从NN中读取editlog,与自己存储的Image进行合并形成新的metadata image
优点:Hadoop较早的版本都自带,