非k8s节点安装GCDW

1、将如下三个文件拷贝到自己的机器上

/opt/kube/bin/kubectl

/usr/bin/helm

/root/.kube

2、在本地机器修改环境变量,在PATH行添加kubectl路径:/opt/kube/bin

cat ~/.bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

        . ~/.bashrc

fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/opt/kube/bin

export PATH

source ~/.bash_profile

3、在本地机器上可以部署云数仓

4、启动minio服务,进入S3服务器,创建bucket

5、前端/后端注册租户

6、获取租户

kubectl get ns

NAME              STATUS   AGE

default           Active   98d

7、查看租户下面的资源

kubectl get all -n ns

NAME                  READY   STATUS    RESTARTS   AGE

pod/coordinator-1-0   1/1     Running   0          7d1h

pod/coordinator-2-0   1/1     Running   0          7d1h

pod/gcware-0          1/1     Running   0          7d1h

pod/gcware-1          1/1     Running   0          7d1h

pod/gcware-2          1/1     Running   0          7d1h

pod/wh1-c1-0          1/1     Running   0          6d

pod/wh1-c1-1          1/1     Running   0          6d

NAME                    TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE

service/coordinator-1   NodePort    10.68.237.209   <none>        5258:31023/TCP   7d1h

service/coordinator-2   NodePort    10.68.12.64     <none>        5258:32681/TCP   7d1h

service/gcware          ClusterIP   None            <none>        5919/TCP         7d1h

service/wh1-c1          ClusterIP   10.68.125.68    <none>        5050/TCP         6d

NAME                             READY   AGE

statefulset.apps/coordinator-1   1/1     7d1h

statefulset.apps/coordinator-2   1/1     7d1h

statefulset.apps/gcware          3/3     7d1h

statefulset.apps/wh1-c1          2/2     6d

8、进入coordinator-1-0

kubectl exec -it pod/coordinator-1-0 -n ns -- bash

[gbase@coordinator-1-0 /]$ gcadmin

CLUSTER STATE:         ACTIVE

=======================================

|  GBASE GCWARE CLUSTER INFORMATION   |

=======================================

| NodeName |    IpAddress    | gcware |

---------------------------------------

| gcware1  | gcware-0.gcware |  OPEN  |

---------------------------------------

| gcware2  | gcware-1.gcware |  OPEN  |

---------------------------------------

| gcware3  | gcware-2.gcware |  OPEN  |

---------------------------------------

===================================================================

|              GBASE COORDINATOR CLUSTER INFORMATION              |

===================================================================

| NodeName |           IpAddress           | gcluster | DataState |

-------------------------------------------------------------------

|          | coordinator-1-0.coordinator-1 |   OPEN   |     0     |

-------------------------------------------------------------------

|          | coordinator-2-0.coordinator-2 |   OPEN   |     0     |

-------------------------------------------------------------------

0 warehouse

2 coordinator node

0 free data node

9、其他命令

(1)修改配置文件

kubectl get configmaps  -n ns

kubectl edit  configmaps  gcdw-coordinator-default-config  -n ns

(2)重启服务

kubectl delete pod/coordinator-1-0 -n ns

(3)拷贝文件

tar cf - filepath | kubectl exec -i -n ns coordinator-1-0 -- tar xf - -C /opt

(4)拷贝k8s节点上文件到本地

kubectl cp ns/coordinator-1-0:filepath filepath

  1. 租户相关命令

account --show

account --drop -A ns

account --create -A ns -U root --S3_accessKey=2KOJW0JNPICZAARAO07N --S3_secretKey=GGEbnJ1ceIg8x3c0UO5405UeeoC7+aliZ+EleHRl --S3_endPoint=10.10.15.74:9000          --S3_region=minio --S3_bucket=gcdw64 --storage_style=s3          --hdfs_namenodes=192.168.151.100:50070,192.168.151.101:50070 --hdfs_uri=hdp://gbase@192.168.151.100:50070/ -P '111111' 10.10.13.48 10.10.15.58

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值