解压:
使用 apt-mirror 来同步 hortonworks 镜像服务器上的 Ambari, HDP, HDP-UTILS 仓库, 方便本地搭建 Hadoop 集群. 适合于 Ubuntu/Debian 分支的操作系统.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
HALF2FULL = dict((i, i + 0xFEE0) for i in range(0x21, 0x7F)) | |
HALF2FULL[0x20] = 0x3000 | |
FULL2HALF = dict((i + 0xFEE0, i) for i in range(0x21, 0x7F)) | |
FULL2HALF[0x3000] = 0x20 | |
def fullen(s): |
需要依赖 hadoop 生态圈的多种服务:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
启动集群 | |
--------- | |
启动 hadoop 相关服务 | |
============== | |
### 启动 hadoop | |
```bash | |
start-dfs.sh |
解压Sqoop:
$ tar -zvxf sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz
$ mv sqoop-1.4.6.bin__hadoop-2.0.4-alpha /hadoop/sqoop
NewerOlder