- 博客(17)
- 资源 (10)
- 收藏
- 关注
原创 hadoop集群环境搭建之完全分布式集群环境搭建(二)
hadoop集群环境搭建之完全分布式集群环境搭建(二)我们在上一篇 hadoop集群环境搭建之伪分布式集群环境搭建(一)中介绍了hadoop伪分布式集群环境的搭建,下面我们介绍下完全分布式集群环境搭建。完全分布式集群是指在多台机器上部署hadoop的服务。下面我以三台机器(server1,server2,server3)为例。搭建一个完全分布式的集群环境。1、Linux机器环境配置...
2018-01-31 23:19:02 1376
原创 hadoop集群环境搭建之伪分布式集群环境搭建(一)
hadoop集群环境搭建之伪分布式集群环境搭建(一)1、Linux基本环境配置1.1 虚拟机网络模式选择NAT一般虚拟机默认是NAT模式1.2 修改主机名vim /etc/sysconfig/networkNETWORKING=yesHOSTNAME=zhang # 主机名1.3 修改IP切换root的用户,修改/etc/sysconfig/netw...
2018-01-31 23:16:54 22685 2
原创 Linux之jdk卸载后安装并配置环境变量
Linux之jdk卸载后安装并配置环境变量在CentOS 7.x的Linux操作系统下,会自带openjdk的环境,如果我们想自己安装jdk环境,需要卸载自带的openjdk环境。步骤如下:1、查看java环境java -version2、查询jdk# 查看linux的jdkrpm -qa | grep jdk3、删除jdk# 移除openjdkyu
2018-01-23 11:28:02 1770
原创 Linux文件上传、下载、打包、解压
Linux文件上传、下载、打包、解压Linux文件上传Linux文件是指其他机器(如:Windows)将文件传输到Linux的机器上。下面我们使用scp的命令来实现这个操作:scp 本地目录 user@ip:Linux文件存放目录打开git控制台因为Windows不支持scp命令,所以需要额外的软件实现,git软件是支持Linux命令的。平时做软件开发,也经常使用
2018-01-19 22:08:48 25220 1
原创 Linux的find命令
Linux的find命令find命令是用来在指定目录下查找文件的。任何位于参数之前的字符串都将视为欲查找的目录名。如果使用该命令,不设置任何参数,则find命令将在当前目录下查找子目录和文件。并且查找到的子目录和文件全部进行显示。find语法find (选项) (参数)常用的选项参数-name :指定字符串作为寻找文件或目录的范本样式-regex:指定字符串
2018-01-19 22:07:41 385
原创 Linux时间设置与iptables命令
Linux时间设置与iptables命令日期与时间设置timedatectl:显示目前时区与时间等信息eg:[root@localhost zhang]# timedatectl Local time: Thu 2018-01-18 10:13:55 UTC Universal time: Thu 2018-01-18 10:13:55 UTC
2018-01-19 22:06:41 2531
原创 Linux用户管理
Linux用户管理UID与GIDUID:使用者ID(User ID,简称UID)GID:群组ID(Group ID,简称GID)UID的范围(CentOS7.x)0:root用户使用1~999:系统账号1000~65535:可登录账号账号管理useradd添加账号选项与参数-u:后面接的是UID,是一组数字。直接指定一个UID给这个账号-g:
2018-01-19 22:05:29 337
原创 Shell入门(六)之Shell pipe(管道)
Shell入门(六)之Shell pipe(管道)Shell pipe(管道)命令pipe(管道)命令使用|界定符号。pipe管道命令|,仅能处理经由前面一个指令传来的信息,也就是标准输出(standard output)的信息,对于标准错误输出(standard error output)没有处理能力。整体的pipe管道命令可以使用下图表示:eg:在当前用户执行ls -a
2018-01-19 22:04:29 5106
原创 Shell入门(五)之Shell函数和file重定向
Shell入门(五)之Shell函数和file重定向Shell函数Shell函数定义:[ function ] funname [()]{ action; [return int;]}说明可以使用function fun()定义,也可以直接使用fun()定义,不带任何参数。参数返回,可以使用return返回,如果不加,将以最后一条命令运行结果,
2018-01-17 17:26:19 1139
原创 Shell入门(四)之Shell 流程控制
Shell入门(四)之Shell 流程控制if elseif语句语法:if conditionthen command ...fieg:#!/bin/basha=100b=100if [ $a == $b ]then echo "$a == $b"fi输出:100 == 100也可以在终端写成一行:
2018-01-17 17:25:14 540
原创 Shell入门(三)之Shell echo、printf、test命令
Shell入门(三)之Shell echo、printf、test命令Shell echo命令显示普通字符串echo "hello"输出:hello这里的双引号完全可以省略,如下:echo hello输出:hello显示转义字符echo "\"hello\""或者echo \"hello\"输出:”hello”显示变量name
2018-01-17 17:23:43 1551
原创 Shell入门(二)之Shell运算符
Shell入门(二)之Shell运算符Shell基本运算符Shell和其他编程语言一样,支持多种运算符,包括:算术运算符关系运算符布尔运算符字符串运算符原生的bash不支持简单的数学运算,但是可以通过其他命令来实现,例如:awk和expr,expr最为常用。如:val=`expr 2 + 3`echo $val输出:5注意,2 + 3之间需要有一
2018-01-17 17:21:33 635
原创 Shell入门(一)之Shell变量
Shell入门(一)之Shell变量Shell脚本的第一个程序我们使用Linux用户名登入,打开控制台,输入ls命令:在当前文件目录中创建一个test目录,在test目录下创建一个hello.sh文件。创建test目录mkdir test进入test目录,创建hello.sh文件cd testtouch hello.sh或者直接使用vim
2018-01-17 17:17:41 642
原创 Linux远程登录
Linux远程登录以下登入是通过Windows的ssh客户端访问Linux的CentOS机器。ssh通过用户名和密码进行登录(Putty客户端)在Linux的机器控制台输入命令:ifconfig -a,如下图:在windows电脑打开ssh客户端,如Putty(Putty下载地址)。在Putty的客户端输入linux机器的ip,保存session后,点击open打开。
2018-01-15 22:42:45 6533 1
原创 Linux系统常用的命令
Linux系统常用的命令文件管理ls:列出目录cd:切换目录pwd:显示目前的目录mkdir:创建一个新的目录rmdir:删除一个空的目录cp:复制文件或目录rm:移除文件或目录mv:移动文件或目录cat:显示文件内容tac:从最后一行开始显示nl:显示的时候,顺带输出行号more:一页一页的显示文件内容less:与more类似,但是比more更好,它可以
2018-01-15 22:41:34 350
原创 Linux系统目录结构
Linux系统目录结构在我们登入Linux系统后,通过ls /命令,将当前目录切换到根目录,如图所示:下面就对这些目录进行介绍:/:表示根目录,每一个文件和目录从根目录开始。只有root用户具有该目录下的写权限。/bin:用户的2进制文件,存放着经常使用的命令。/boot:这里存放的是启动Linux时使用的一些核心文件,包括一些连接文件以及镜像文件。/dev:dev是Dev
2018-01-15 22:40:25 432
原创 pandas之groupby分组与pivot_table透视表
pandas之groupby分组与pivot_table透视表在使用pandas进行数据分析时,避免不了使用groupby来对数据进行分组运算。groupby的参数groupby(by=None, axis=0, level=None, as_index=True, sort=True, group_keys=True, squeeze=False, **kwargs)by:mapping, fu
2018-01-04 17:17:10 12676
Gradle for Android
2016-11-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人