不知道Hadoop论坛在哪里...这似乎是最接近的赌注。
我正在尝试设置集群以运行 Hortonworks 平台,这意味着我需要 bdutil 工作。
但是,虽然我可以在引导文件夹中运行 install.py 脚本,但我无法让任何 gcloud 或 bdutil 函数工作。 我最初认为 64 位 python 安装和 32 位 GC SDK 之间存在不兼容......因此,安装了 32 位 Python 2.7 并通过临时删除具有 64 位安装路径的环境变量来强制 Cygwin 使用此路径。
以下是我的错误日志,以及有关目录内容的信息。 如能提供协助,将不胜感激。 我已经为此奋斗了三天了。
--KNOWS WHICH PYTHON TO USE
$ which python/cygdrive/c/Users/MJ/Anaconda/python
--INSIDE FOLDER WITH PYTHON SCRIPTS
MJ@Speed_rAcer ~/google-cloud-sdk/bin/bootstrapping
$ ls
__init__.py bq.py install.py setup.py
bootstrapping.py gcutil.py prerun.py setup.pyc
bootstrapping.pyc gsutil.py print_env_info.py
--RUNS PYTHON SCRIPT (install.py). DIDN'T LET ME PICK Y OR N BUT SAYS IT'S CONFIGURED
MJ@Speed_rAcer ~/google-cloud-sdk/bin/bootstrapping
$ python install.py
Do you want to help improve the Google Cloud SDK (Y/n)?
All components are up to date.
Update %PATH% to include Cloud SDK binaries? (Y/n)?
The Google Cloud SDK is currently in developer preview. To help improve the
quality of this product, we collect anonymized data on how the SDK is used.
You may choose to opt out of this collection now (by choosing 'N' at the below
prompt), or at any time in the future by running the following command:
gcloud config set --scope=user disable_usage_reporting true
This will install all the core command line tools necessary for working with
the Google Cloud Platform.
The following directory has been added to your PATH.
C:UsersMJhomegoogle-cloud-sdkbin
Create a new command shell for the changes to take effect.
For more information on how to get started, please visit:
https://developers.google.com/cloud/sdk/gettingstarted
--NEW SHELL. SHOWING COMMANDS I SHOULD BE ABLE TO RUN (first is gcloud.cmd)
MJ@Speed_rAcer ~/google-cloud-sdk/bin
$ ls
bootstrapping gcloud - Copy.cmd gcutil.cmd gsutil.cmd
bq.cmd gcloud.cmd git-credential-gcloud.cmd sdk
--TRY ONE TO EXECUTE COMMAND
$ ./gcloud auth login
-bash: ./gcloud: No such file or directory
--TRY TWO TO EXECUTE COMMAND
MJ@Speed_rAcer ~/google-cloud-sdk/bin
$ gcloud auth login
-bash: gcloud: command not found
Cloud SDK for Windows 指令适用于 Windows,其中"命令外壳"表示 cmd.exe。 gcloud auth login
bash 提示符指示 bash 查找gcloud
PATH 上的可执行文件。您安装了适用于Windows的gcloud,因此安装了gcloud.cmd
。bash不对命令进行基于后缀的搜索,因此在搜索gcloud
时找不到gcloud.cmd
。
您可以执行以下操作之一来让 bash 识别 gcloud
命令:
- 运行以下命令以安装 CygWin shell 脚本:
gcloud.cmd components update
- 运行:
alias gcloud='cmd /c gcloud.cmd'
- 在包含 gcloud.cmd 的目录中运行:
echo cmd /c gcloud.cmd "$@" > gcloud chmod +x gcloud
- 运行
cmd
以获取 Windows 命令提示符。你不会再陷入困境了。