Skip to content

Instantly share code, notes, and snippets.

#! /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):

通过本地镜像安装 ambari

###修改 hostname

##修改 master 的 hostname
# vim /etc/hostname
master

目标

使用 apt-mirror 来同步 hortonworks 镜像服务器上的 Ambari, HDP, HDP-UTILS 仓库, 方便本地搭建 Hadoop 集群. 适合于 Ubuntu/Debian 分支的操作系统.

参考

@greenqy
greenqy / create-hadoop-cluster-from-vms.md
Last active December 12, 2015 04:39
create-hadoop-cluster-from-vms

启动集群

启动 hadoop 相关服务

启动 hadoop

start-dfs.sh
@greenqy
greenqy / create-hadoop-cluster-from-vms
Created December 8, 2015 09:38
create-hadoop-cluster-from-vms
启动集群
---------
启动 hadoop 相关服务
==============
### 启动 hadoop
```bash
start-dfs.sh
@greenqy
greenqy / install-sqoop.md
Created September 22, 2015 07:21
install-sqoop.md

sqoop 安装

下载地址

解压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
@greenqy
greenqy / install-elastic-search.md
Created September 22, 2015 07:13
install-elastic-search.md
@greenqy
greenqy / install-workflow.md
Last active December 21, 2015 02:49
install-workflow.md

工作流调度引擎

依赖

需要依赖 hadoop 生态圈的多种服务:

@greenqy
greenqy / install-spark.md
Last active January 31, 2024 03:28
install-spark.md
@greenqy
greenqy / install-azkaban.md
Last active January 31, 2024 03:28
install-azkaban.md