在谷歌云上安装 Janusgraph

时间:2021-06-22 14:00:27

标签: gcloud janusgraph

我正在尝试使用 https://cloud.google.com/architecture/running-janusgraph-with-bigtable 提供的教程在 Google Cloud 上安装 JanusGraph

但我收到错误 unable to recognize "": no matches for kind "Deployment" in version "apps/v1beta1",并收到图表已弃用错误。让我知道是否有人能够安装相同的,

根据文档

gcloud container clusters create janusgraph-tutorial \
--cluster-version=1.15 \
--machine-type=n1-standard-4 \
--scopes=\
"https://www.googleapis.com/auth/bigtable.admin",\
"https://www.googleapis.com/auth/bigtable.data"

错误为 ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=No valid versions with the prefix "1.15" found

所以我尝试了:

gcloud container ...
--cluster-version=1.20 \ ..

并且我能够创建容器

稍后安装janus图

helm upgrade --install --wait --timeout 600s janusgraph stable/janusgraph -f values.yaml

Release "janusgraph" does not exist. Installing it now.
WARNING: This chart is deprecated
Error: unable to build kubernetes objects from release manifest: [unable to recognize "": no matches for kind "Deployment" in version "apps/v1beta1", unable to recognize "": no matches for kind "StatefulSet" in version "apps/v1beta1"]

1 个答案:

答案 0 :(得分:1)

Kubernetes 版本资源,如 + node /Users/USERNAMAE/RNAPP/node_modules/react-native/cli.js bundle --entry-file index.js --platform ios --dev true --reset-cache --bundle-output /Users/USERNAME/Library/Developer/Xcode/DerivedData/RNAPP-dkmyfsbkdgxjzccgsexwkuiqxsnz/Build/Products/Debug-iphoneos/ReLearn.app/main.jsbundle --assets-dest /Users/USERNAME/Library/Developer/Xcode/DerivedData/RNAPP-dkmyfsbkdgxjzccgsexwkuiqxsnz/Build/Products/Debug-iphoneos/RNAPP.app warning: the transform cache was reset. Welcome to React Native! Learn once, write anywhere events.js:352 throw er; // Unhandled 'error' event ^ Error: EMFILE: too many open files, watch at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:178:28) Emitted 'error' event on NodeWatcher instance at: at NodeWatcher.checkedEmitError (/Users/USERNAME/RNAPP/node_modules/sane/src/node_watcher.js:143:12) at FSWatcher.emit (events.js:375:28) at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:184:12) { errno: -24, syscall: 'watch', code: 'EMFILE', filename: null } + [[ true != true ]] Welcome to React Native! Learn once, write anywhere events.js:352 throw er; // Unhandled 'error' event ^ Error: EMFILE: too many open files, watch at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:178:28) Emitted 'error' event on NodeWatcher instance at: at NodeWatcher.checkedEmitError (/Users/username/RNApp/node_modules/sane/src/node_watcher.js:143:12) at FSWatcher.emit (events.js:375:28) at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:184:12) { errno: -24, syscall: 'watch', code: 'EMFILE', filename: null 。直到最近 (<=1.16),Deployment 还在 Deployment API(版本)下可用。从 Kubernetes 1.16 开始,这已被弃用并删除。您现在必须使用 apps/v1beta1

见:

如果您能够修改教程中的这些参考资料,那么您应该这样做。您可能会遇到其他已弃用和|或删除的 API,但只有后者会导致类似问题。

最好是“向 Google 发送反馈”(教程底部),要求那里的人升级教程或提供警告。

奇怪的是,我注意到教程包括创建 Kubernetes v1.15 集群:

apps/v1

根据上述内容,该版本仍应支持 gcloud container clusters create janusgraph-tutorial \ --cluster-version=1.15 \ ... ,这行不通吗?

您的问题将受益于额外的上下文|详细信息。您写了“我收到错误”,但没有包含导致此问题的具体步骤。我假设是在您尝试使用 Helm 将 JanusGraph 部署到集群时?

apps/v1beta1/Deployment