2016年5月8日
摘要: 关于hadoop集群搭建有一些准备工作要做,具体请参照hadoop集群环境搭建准备工作 (我成功的按照这个步骤部署成功了,经实际验证,该方法可行) 一、安装zookeeper 1 将zookeeper的安装包上传到linux系统中,并且 建立 /root/itcast/目录,将其解压到该目录下: t 阅读全文
posted @ 2016-05-08 07:46 狂奔的蜗牛163 阅读(1931) 评论(0) 推荐(0) 编辑
摘要: 在安装hadoop集群之前,需要先进行zookeeper的安装,请参照hadoop集群环境搭建之zookeeper集群的安装部署 1 将hadoop安装包解压到 /itcast/ (如果没有这个目录可以先自行创建之) tar -zxvf hadoop-2.6.4.tar.gz -C /itcast 阅读全文
posted @ 2016-05-08 07:45 狂奔的蜗牛163 阅读(619) 评论(0) 推荐(0) 编辑
  2016年5月7日
摘要: 一定要注意hadoop和linux系统的位数一定要相同,就是说如果hadoop是32位的,linux系统也一定要安装32位的。 准备工作: 1 首先在VMware中建立6台虚拟机(配置默认即可)。这是我们的集群规划: 主机名 IP 安装的软件 运行的进程 itcast11 192.168.1.201 阅读全文
posted @ 2016-05-07 10:16 狂奔的蜗牛163 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 1 首先将要安装的jdk上传到linux系统中 2 将上传的jdk移动到/usr/local文件夹中 mv jdk-6u24-linux-i586.bin /usr/local/ 3 转到该文件夹下 cd /usr/local 4 将刚才移动过来的jdk添加一个可执行权限 chmod 777 jdk 阅读全文
posted @ 2016-05-07 09:48 狂奔的蜗牛163 阅读(368) 评论(0) 推荐(0) 编辑
  2016年5月5日
摘要: 安装zookeeper-3.3.2的时候,启动正常没报错,但zkServer.sh status查看状态的时候却出现错误,如下: JMX enabled by defaultUsing config: /hadoop/zookeeper/bin/../conf/zoo.cfgError contac 阅读全文
posted @ 2016-05-05 09:00 狂奔的蜗牛163 阅读(62396) 评论(6) 推荐(3) 编辑
  2016年5月4日
摘要: Linux系统安装好后,都会有默认的主机名,这里以CentOS系统为例,默认的主机名为localhost.localdomain,为了便于使用,我们常常需要修改主机名,下面演示的是永久更改主机名的方法。 1 以根用户登录,或者登录后切换到根用户,然后在提示符下输入hostname命令,可以看出当前系 阅读全文
posted @ 2016-05-04 19:49 狂奔的蜗牛163 阅读(1035) 评论(0) 推荐(1) 编辑
  2016年3月25日
摘要: Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. 阅读全文
posted @ 2016-03-25 10:25 狂奔的蜗牛163 阅读(261) 评论(0) 推荐(0) 编辑
  2016年3月24日
摘要: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [−2,1,−3,4,−1,2, 阅读全文
posted @ 2016-03-24 16:23 狂奔的蜗牛163 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4],t 阅读全文
posted @ 2016-03-24 15:42 狂奔的蜗牛163 阅读(269) 评论(0) 推荐(0) 编辑
  2016年3月22日
摘要: Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. 这个题目是给你一棵树的中 阅读全文
posted @ 2016-03-22 20:51 狂奔的蜗牛163 阅读(374) 评论(0) 推荐(0) 编辑