安装AEN计算 (AEN 4.1.2)#
这是项目存储和运行的地方。添加多个AEN计算节点允许您水平扩展以增加容量。可以在各个计算节点上创建项目以分散负载。
这些程序假设您已经执行了安装准备、 安装AEN服务器和安装AEN网关程序。
设置变量和更改权限¶
在下面的脚本中,将
更改为实际的完全限定域名主机名或IP地址。
export AEN_SERVER=<FQDN HOSTNAME OR IP ADDRESS> # Use the real FQDN
chmod a+x aen-*.sh # Set installer to be executable
注意:在关闭终端之前,您必须执行整个程序,以确保变量导出持续存在。
运行AEN计算安装程序¶
sudo -E ./aen-compute-4.1.2-Linux-x86_64.sh -w $AEN_SERVER
...
...
PREFIX=/opt/wakari/wakari-compute
Logging to /tmp/wakari_compute.log
Checking server name
...
...
Initial clone of root environment...
Starting Wakari daemons...
installation finished.
Do you wish the installer to prepend the wakari-compute install location
to PATH in your /root/.bashrc ? [yes|no]
[no] >>> yes
配置AEN计算¶
安装完成后,您需要在AEN服务器上配置Compute Launcher。
- Point your browser at the AEN Server
- Login as the
AEN_SRVC_ACCT
user - Click the Admin link in the top navbar
- Click Enterprise Resources in the left navbar
- Click Add Resource
- Select the correct (probably the only) Data Center to associate with this Compute Node
- Enter the fully-qualified domain name here.
注意:如果Compute Launcher与Gateway位于同一台机器上,我们建议使用http://localhost:5002
作为URL值。
- Add a Name and Description for the Compute Node
- Click the Add Resource button to save the changes.
配置conda以使用本地现场的Anaconda仓库¶
这将集成Anaconda Enterprise Notebooks,以使用本地的Anaconda Enterprise Repository服务器,而不是Anaconda.org。
编辑计算节点上的condarc¶
condarc
是 conda 的运行时配置文件。
注意:如果下面有一些你还没有镜像的频道,你应该从配置中移除它们。
注意:在运行之前,请将以下脚本中的
更改为您存储库的实际名称。
#/opt/wakari/anaconda/.condarc
channels:
- defaults
create_default_packages:
- anaconda-client
- ipykernel
# Default channels are needed for when users override the system .condarc
# with ~/.condarc. This ensures that "defaults" map to your Anaconda Repository and not
# repo.anaconda.com
default_channels:
- http://<your Anaconda Repository name>:8080/conda/anaconda
- http://<your Anaconda Repository name>:8080/conda/wakari
- http://<your Anaconda Repository name>:8080/conda/r-channel
# Note: You must add the "conda" subdirectory to the end
channel_alias: http://<your Anaconda Repository name>:8080/conda
配置Anaconda客户端¶
Anaconda 客户端允许用户从命令行与 Anaconda 仓库进行交互,例如搜索包、登录、上传包等。以下命令为所有用户全局设置此值。
运行以下命令,填写正确的仓库URL。
此命令需要sudo
权限,因为配置文件将写入根文件系统:
/etc/xdg/binstar/config.yaml
。这将为计算节点上的所有用户设置anaconda-client
的默认配置。
sudo /opt/wakari/anaconda/bin/anaconda config --set url http://<your Anaconda Repository>:8080/api -s
根据需要重复计算节点安装过程,添加额外节点¶
一个数据中心可以支持多个节点。如果您需要配置额外的计算节点,请对每个您希望启动的计算节点运行此过程。
完成¶
恭喜!您已成功安装并配置了Anaconda Enterprise Notebooks。