摘要: CentOS7 x64 JDK1.8 1. wget https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.4.8/zookeeper-3.4.8.tar.gz 2. tar zxvf zookeeper-3.4.8.tar.gz 3. cd zookeeper-3.4.8/bin 5. ./zkServer.sh ... 阅读全文
posted @ 2016-08-01 11:34 Alex~ 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 1. yum install httpd 2. config /etc/httpd/conf/httpd.conf ServerName www.linuxidc.local DocumentRoot /wwwroot/www/ Requireall granted 3.systemctl enable httpd.service 4.systemctl start httpd.ser... 阅读全文
posted @ 2016-07-28 19:28 Alex~ 阅读(193) 评论(0) 推荐(0) 编辑
摘要: centOS7 x64 1. install gd-devel 2. ./configure --prefix=/usr/local/nginx --with-http_image_filter_module --add-module=fastdfs-nginx-module-master/src/ 3. make && make install 4. cp /usr/local/nginx/s... 阅读全文
posted @ 2016-07-25 13:50 Alex~ 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1. rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm 2. yum install -y nginx 3. systemctl start nginx.service 阅读全文
posted @ 2016-07-15 16:29 Alex~ 阅读(153) 评论(0) 推荐(0) 编辑
摘要: storage install nginx 1. update dependency packageyum -y install pcre-devel openssl openssl-devel gcc 2. wget https://codeload.github.com/happyfish100/fastdfs-nginx-module/zip/master3. unzip fastdf... 阅读全文
posted @ 2016-07-12 16:27 Alex~ 阅读(340) 评论(0) 推荐(0) 编辑
摘要: Version: os: centos7 x64 FastDFS: 5.05 libfastcommon: latest 1. dwonload libfastcommon https://github.com/happyfish100/libfastcommon.git install A) ./make.sh B) ./make.sh install 2.... 阅读全文
posted @ 2016-07-11 20:26 Alex~ 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 安装docker 1、yum install docker 方法一: 1、 docker pull redis 2、docker run -d --name redis-1 -p 7001:6379 redis 3、docker inspect redis-1 | grep IPA "SecondaryIPAddresses": null, "IPAddress": "1... 阅读全文
posted @ 2016-07-07 19:23 Alex~ 阅读(1646) 评论(0) 推荐(0) 编辑
摘要: 1. yum install docker 2. set docker : systemctl enable docker.service 3. docker pull registry 4. docker run -d -v /data/docker/registry -p 5000:5000 --restart=always --name registry registry 5. docker... 阅读全文
posted @ 2016-07-07 15:26 Alex~ 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1、download docker from https://download.docker.com/win/beta/InstallDocker.msi 2、install, tip HyperV is not available on Home editions. Please use Docker Toolbox. 3、download Docker Toolbox from http://... 阅读全文
posted @ 2016-07-06 17:20 Alex~ 阅读(714) 评论(0) 推荐(0) 编辑
摘要: 1. download cas 4.2.2 from https://github.com/apereo/cas/releases 2. eclipse import cas 4.2.2 eclipse install SpringSource Update Site for Gradle Inte 阅读全文
posted @ 2016-06-15 00:33 Alex~ 阅读(1382) 评论(0) 推荐(0) 编辑
摘要: $ wget http://download.redis.io/releases/redis-3.2.0.tar.gz$ tar xzf redis-3.2.0.tar.gz$ cd redis-3.2.0$ make cp redis.conf /etc/ cp redis-benchmark redis-cli redis-server /usr/bin/ 修改redis.conf... 阅读全文
posted @ 2016-05-30 13:33 Alex~ 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 环境 CentOS7/CentOS7.1 x64 1、检查yum 2、检查是否安装zlib,下载地址:http://www.zlib.net/ 3、安装libpng,下载地址:http://www.libpng.org/pub/png/pngcode.html, 我本地因环境问题安装了1.4和1.5两个版本 4、安装libjpeg,首先安装jasper, 下载地址:http://www.ece.... 阅读全文
posted @ 2016-05-27 13:23 Alex~ 阅读(1645) 评论(0) 推荐(0) 编辑
摘要: 在web.xml中有两种配置error-page的方法,一种是通过错误码来配置,二是通过异常的类型来配置,分别举例如下: 一、通过错误码来配置error-page404/error.jsp上面配置了当系统发生404错误时,跳转到错误处理页面error.jsp 二、通过异常的类型配置error-pagejava.lang.NullPointException/error.jsp上面配置了当系统发生j... 阅读全文
posted @ 2015-01-15 09:31 Alex~ 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 转http://blog.csdn.net/hittata/article/details/7042779 #/bin/bash printf "*************************************\n" echo " cat file whiel read line" cat test.txt |while read line do echo $line; done ... 阅读全文
posted @ 2014-08-09 13:57 Alex~ 阅读(20038) 评论(0) 推荐(1) 编辑
摘要: 转http://blog.163.com/wuzhimin_1988/blog/static/1424760200851254541814/这是一节“前不着村后不着店”的课。不同进制之间的转换纯粹是数学上的计算。不过,你不必担心会有么复杂,无非是乘或除的计算。生活中其实很多地方的计数方法都多少有点不... 阅读全文
posted @ 2014-06-30 17:19 Alex~ 阅读(1880) 评论(0) 推荐(0) 编辑
摘要: 2013-08-20 10:36:17,728 INFO org.apache.hadoop.http.HttpServer: listener.getLocalPort() returned 50070 webServer.getConnectors()[0].getLocalPort() ret... 阅读全文
posted @ 2013-08-20 14:12 Alex~ 阅读(19349) 评论(0) 推荐(0) 编辑
摘要: org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: hdfs://xxx:49000/user/hadoop/input at org.apache.hadoop.mapred.FileInputFormat.listStatus(FileInputFormat.java:197) at org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:208) at org.apache.hadoop... 阅读全文
posted @ 2013-08-16 17:49 Alex~ 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 最近几天通过SSH登录局域网内的一台机器时,在输入用户名后,得等10多秒后才会有响应回来,很慢, 但PING的时候TTL时间很快,那机器负载也蛮小的。这个小问题存在了几天,一直没顾上解决,今天在网上查了些资料,终于知道的这个问题产生的原因。 原因之一是因为LINUX系统的一个文件/etc/ns... 阅读全文
posted @ 2013-08-03 10:59 Alex~ 阅读(179) 评论(0) 推荐(0) 编辑
摘要: RedHat AS4 安装yum下载rpm http://mirrors.163.com/centos/4/os/i386/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm http://mirrors.163.com/centos/4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm http://mirrors.163.com/centos/4/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm http:... 阅读全文
posted @ 2013-07-29 19:28 Alex~ 阅读(868) 评论(0) 推荐(0) 编辑
摘要: ambari 1.2.4 下载地址:http://www.apache.org/dist/incubator/ambari/ambari-1.2.4/ambari-1.2.4-incubating.tar.gz官方手册:http://incubator.apache.org/ambari/1.2.4/installing-hadoop-using-ambari/content/index.html安装过程一、准备1、安装包2、集群中ambari-serveer(管理节点)到客户端配置无密码登录。3、集群同步时间4、SELinux,iptables都处于关闭状态5、安装的服务器通过连接到网络6、 阅读全文
posted @ 2013-07-29 16:13 Alex~ 阅读(14347) 评论(0) 推荐(2) 编辑
摘要: redhat版本:LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID: Re... 阅读全文
posted @ 2013-07-25 13:37 Alex~ 阅读(591) 评论(0) 推荐(0) 编辑
摘要: 增加机器不重启操作如下: 首先,把新节点的 IP或主机名 加入主节点(master)的 conf/slaves 文件。 然后登录新的从节点,执行以下命令: $ cd path/to/hadoop $ bin/hadoop-daemon.sh start datanode $ bin/hadoop-daemon.sh start tasktracker 然后就可以在namanode机器上运行balancer,执行负载均衡 $bin/hadoop balancer删除机器 不安全的方式 由于Hadoop集群自身具备良好的容错性,可以直接... 阅读全文
posted @ 2013-07-09 14:43 Alex~ 阅读(577) 评论(0) 推荐(0) 编辑
摘要: Inserting of file(使用 XMPP 构建一个基于 web 的通知工具.docx) failed. Please try again.http://www.ibm.com/developerworks/cn/xml/tutorials/x-realtimeXMPPtut/resources.html 阅读全文
posted @ 2013-07-09 14:43 Alex~ 阅读(200) 评论(0) 推荐(0) 编辑
摘要: permission denied user1、修改配置文件在conf/hdfs-site.xml文件中添加如下内容: dfs.permissions false 注意是所有节点2、修改eclipse中配置的参数,将dfs.permissions 的值修改为false3、重启hadoop后,升效 阅读全文
posted @ 2013-07-09 14:39 Alex~ 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 现象问题: 同样的一个文件 UltraEdit 打开是乱码,显示文件的编码是U8-DOS,可是用EditPlus 、记事本,打开,就是正常的,编码显示是ANSI。 即使在UltraEdit打开文件的时候,手动选择各种编码,也不能正确显示文件内容。 解决方法: 高级->配置->文件处理->Unicode/UTF-8检测->去掉Auto detect UTF-8 files前面... 阅读全文
posted @ 2013-07-07 23:53 Alex~ 阅读(4849) 评论(0) 推荐(0) 编辑
摘要: 1、Hadoop开发环境简介1.1 Hadoop集群简介Java版本:jdk-6u31-linux-i586.binLinux系统:CentOS6.0Hadoop版本:hadoop-1.0.0.tar.gz1.2 Windows开发简介Java版本:jdk-6u31-windows-i586.exeWin系统:Windows 7 旗舰版Eclipse软件:eclipse-jee-indigo-SR1-win32.zip | eclipse-jee-helios-SR2-win32.zipHadoop软件:hadoop-1.0.0.tar.gzHadoop Eclipse 插件:hadoop-e 阅读全文
posted @ 2013-07-03 11:02 Alex~ 阅读(4195) 评论(0) 推荐(0) 编辑
摘要: What Is Apache Hadoop?The Apache™ Hadoop® project develops open-source software for reliable, scalable, distributed computing.The Apache Hadoop software library is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming mod 阅读全文
posted @ 2013-07-03 10:08 Alex~ 阅读(514) 评论(0) 推荐(0) 编辑
摘要: hadoop-1.2.1 eclipse插件编译 在ubuntu上进行hadoop相关的开发,需要在eclipse上安装hadoop开发插件。最新释放出的hadoop包含源码的包,以hadoop-1.1.1为例,包含相关的eclipse插件的源码,因此可以针对自己的eclipse版本来编译一个hadoop的eclipse插件,我的eclipse的版本代号为indigo,以此为例,下... 阅读全文
posted @ 2013-06-28 12:48 Alex~ 阅读(12335) 评论(4) 推荐(1) 编辑
摘要: 转自:http://blog.csdn.net/xieyuooo/article/details/5437126ORACLE对于分区表方式其实就是将表分段存储,一般普通表格是一个段存储,而分区表会分成多个段,所以查找数据过程都是先定位根据查询条件定位分区范围,即数据在那个分区或那几个内部,然后在分区... 阅读全文
posted @ 2013-06-13 11:30 Alex~ 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 对集群配置后会有问题,对问题说明如下:1、测试运行 bin/hadoop jar hadoop-examples-1.1.2.jar wordcount conf/ /tmp 命令报错ERROR security.UserGroupInformation: PriviledgedActionException as:hadoop cause:org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory /tmp already exists重新指定输出目录,如修改为bin/hadoop jar hadoop-exam 阅读全文
posted @ 2013-06-09 14:58 Alex~ 阅读(4614) 评论(0) 推荐(0) 编辑