北在北方

太白枝头看,花开不计年,杯中浮日月,楼外是青天。

导航

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页

2013年3月27日

摘要: 典型的在一个集群中:NameNode部署在一台机器上,JobTracker部署在另一台机器上,作为主节点;其他的机器部署DataNode和TaskTracker,作为从节点。 我的机子内存太小,只虚拟了三个Linux系统,NameNode和JobTracker部署在同一个机器上,作为主节点,另外两个部署DataNode和TaskTracker,作为从节点。主机名IP主节点h1192.168.0.129从节点h2192.168.0.130从节点h3192.169.0.131 1、各个节点配置 1)确保各个机器的主机名和IP地址之间能够正常解析,修改/etc/hosts文件。 ... 阅读全文

posted @ 2013-03-27 23:19 CN.programmer.Luxh 阅读(646) 评论(0) 推荐(0) 编辑

2013年3月25日

摘要: 1、在“开始”搜索框处输入 UAC ,打开 更改用户账户控制设置2、把控制设置拉到最底部,从不通知,确定后重启系统。3、打开IE,Internet选项 ---- 高级,取消 “启用内存保护减少联机攻击” 前面的勾4、输入qc地址就可以访问了。 阅读全文

posted @ 2013-03-25 10:24 CN.programmer.Luxh 阅读(260) 评论(0) 推荐(0) 编辑

2013年3月14日

摘要: 在页面上异步获取Controller中响应的json数据。 页面代码:<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>< 阅读全文

posted @ 2013-03-14 21:25 CN.programmer.Luxh 阅读(2656) 评论(0) 推荐(0) 编辑

摘要: 一个普通的表单。 表单的代码如下:<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta 阅读全文

posted @ 2013-03-14 19:58 CN.programmer.Luxh 阅读(24988) 评论(0) 推荐(3) 编辑

摘要: 1、如果只配置拦截类似于*.do格式的url,则对静态资源的访问是没有问题的,如下:<!-- SpringMVC核心分发器 --> <servlet> <servlet-name>dispatcherServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation&l 阅读全文

posted @ 2013-03-14 13:52 CN.programmer.Luxh 阅读(3687) 评论(1) 推荐(3) 编辑

2013年1月22日

摘要: 有时候,会使用VMware虚拟机的的克隆功能,快速的复制已安装好的系统。 可是克隆完之后,会发现没有eth0网卡。 解决方法: 1、编辑/etc/udev/rules.d/70-persistent-net.rules文件 把NAME="eth0"的那行配置注释掉或者删掉,把NAME="eth1"的修改成NAME="eth0",修改后如下: 2、更改网卡配置文件,/etc/sysconfig/network-scripts/ifcfg-eth0 将HWADDR的值修改为/etc/udev/rules.d/70-persistent-n 阅读全文

posted @ 2013-01-22 21:59 CN.programmer.Luxh 阅读(372) 评论(0) 推荐(0) 编辑

2013年1月17日

摘要: 伪分布模式: Hadoop可以在单节点上以伪分布模式运行,用不同的Java进程模拟分布式运行中的各类节点。 1、安装Hadoop 确保系统已安装好JDK和ssh。 1)在官网下载Hadoop: http://hadoop.apache.org/ 我这里下载的是 hadoop-1.1.1-bin.tar.gz 2)下载后放到/softs目录下 3)将hadoop-1.1.1-bin.tar.gz解压到/usr目录 [root@localhost usr]# tar -zxvf /softs/hadoop-1.1.1-bin.tar.gz [root@lo... 阅读全文

posted @ 2013-01-17 00:51 CN.programmer.Luxh 阅读(3255) 评论(0) 推荐(3) 编辑

摘要: 1、建立一个测试的目录 [root@localhost hadoop-1.1.1]# bin/hadoop dfs -mkdir /hadoop/input 2、建立测试文件[root@localhost test]# vi test.txthello hadoophello WorldHello JavaHey mani am a programmer 3、将测试文件放到测试目录中[root@localhost hadoop-1.1.1]# bin/hadoop dfs -put ./test/test.txt /hadoop/input 4、执行wordcount程序[root... 阅读全文

posted @ 2013-01-17 00:51 CN.programmer.Luxh 阅读(2909) 评论(0) 推荐(0) 编辑

2013年1月15日

摘要: 1、安装 1)到官网下载JDK http://www.oracle.com/technetwork/java/javase/downloads/jdk6u38-downloads-1877406.html 我这里是32位系统,所以下载jdk-6u38-linux-i586.bin这个bin文件,下载后,我放到/softs目录下 2)赋予安装文件可执行权限[root@localhost softs]# chmod +x jdk-6u38-linux-i586.bin 3)在/usr目录下创建java目录[root@localhost usr]# mk... 阅读全文

posted @ 2013-01-15 23:13 CN.programmer.Luxh 阅读(494) 评论(0) 推荐(0) 编辑

2013年1月14日

摘要: 1、shell结构 一个简单的例子:[root@localhost shell]# vi example#!/bin/sh#This is show what a example looks like.echo "my first shell example."echo # this inserts an empty line in output.echo "We are current in the following directory."/bin/pwdecho~~~ 1)#! 指定执行脚本的shell 2)# 注释行 3)命令和控制结构 2、创建 阅读全文

posted @ 2013-01-14 21:55 CN.programmer.Luxh 阅读(837) 评论(0) 推荐(2) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页