不知道hadoop论坛在哪里…这似乎是最接近的赌注。
我正在尝试设置集群来运行hortonworks平台,这意味着我需要bdutil工作。
但是,虽然我可以在bootstrapping文件夹中运行install.py脚本,但我无法使任何gcloud或bdutil函数正常工作。我最初认为64位python安装和32位gc sdk之间不兼容…因此,安装了一个32位python2.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:\Users\MJ\home\google-cloud-sdk\bin
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
1条答案
按热度按时间aydmsdu91#
cloudsdkforwindows指令是针对windows的,其中“commandshell”表示cmd.exe。
gcloud auth login
在bash提示符处,指示bash查找可执行文件gcloud
在小路上。你安装了用于windows的gcloud,所以gcloud.cmd
已安装。bash不会对命令进行基于后缀的搜索,因此不会找到gcloud.cmd
搜索时gcloud
.可以执行以下操作之一让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命令提示符。你不会再参加bash了。