maven - gofabric8>无法解压缩/Users/apple/.fabric8/bin/oc.zip zip:无效的zip

标签 maven openshift kubernetes microservices fabric8

我正在尝试为微服务设置环境。我正在使用fabric8来做到这一点。

我正在使用mvn fabric8:cluster-start -Dfabric8.cluster.kind=openshift命令。执行时出现以下错误...

  [INFO] gofabric8> Downloading https://github.com/openshift/origin/releases/download/v1.3.1/openshift-origin-client-tools-v1.3.1-dad658de7465ba8a234a4fb40b5b446a45a4cee1-mac.zip...
    [INFO] gofabric8> **Unable to unzip /Users/apple/.fabric8/bin/oc.zip zip: not a valid zip fileUnable to download client zip: not a valid zip file**
    [INFO] gofabric8> using the executable /Users/apple/.fabric8/bin/minishift
    [INFO] gofabric8> running: /Users/apple/.fabric8/bin/minishift start --vm-driver=xhyve --memory=4096 --cpus=1
    [INFO] gofabric8> Starting local OpenShift cluster...
    [INFO] gofabric8> Downloading ISO
    [INFO] gofabric8> 
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 18:50 min
    [INFO] Finished at: 2016-11-14T16:05:32+05:30
    [INFO] Final Memory: 21M/224M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.1.49:cluster-start (default-cli) on project demo: Failed to execute gofabric8 start --batch --minishift --console. java.io.IOException: Failed to execute process stdin for gofabric8 start --batch --minishift --console: java.util.UnknownFormatConversionException: Conversion = ''' -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:fabric8-maven-plugin:3.1.49:cluster-start (default-cli) on project demo: Failed to execute gofabric8 start --batch --minishift --console. java.io.IOException: Failed to execute process stdin for gofabric8 start --batch --minishift --console: java.util.UnknownFormatConversionException: Conversion = '''
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)

任何的想法?

最佳答案

今天,当我尝试遵循fabric8入门指南时,我遇到了类似的问题:https://fabric8.io/guide/getStarted/gofabric8.html
我用了:gofabric8 start --minishift并收到此错误:
DSKTP-000003:~ usr$ gofabric8 start --minishift fabric8 recommends OSX users use the xhyve driver xhyve driver already installed Downloading https://github.com/jimmidyson/minishift/releases/download/v1.0.0-beta.1/minishift-darwin-amd64... Downloaded /Users/brent.fisher/.fabric8/bin/minishift kubectl is already available on your PATH Downloading https://github.com/openshift/origin/releases/download/v1.3.1/openshift-origin-client-tools-v1.3.1-dad658de7465ba8a234a4fb40b5b446a45a4cee1-mac.zip... Unable to unzip /Users/brent.fisher/.fabric8/bin/oc.zip zip: not a valid zip fileUnable to download client zip: not a valid zip file using the executable /Users/brent.fisher/.fabric8/bin/minishift Unable to get status fork/exec /Users/brent.fisher/.fabric8/bin/minishift: exec format errorDSKTP-000003:~ usr$
我正在使用gofabric8版本0.4.112:
gofabric8 version gofabric8, version 0.4.112 (branch: 'master', revision: '50d5d75') build date: '20161129-10:39:49' go version: '1.7.1' 看来minishift选项尝试下载该URL上不再存在的[1.3.1]版本的openshift客户端(oc)。我可以通过从此处手动下载开放式类次来解决该错误:https://github.com/openshift/origin/releases/tag/v1.3.2
并将其提取并将提取的可执行文件重命名为oc

关于maven - gofabric8>无法解压缩/Users/apple/.fabric8/bin/oc.zip zip:无效的zip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40586946/

相关文章:

java - 将多模块 maven 项目拆分为单独的 WAR 文件

java - 通过 Google Cloud Dataflow 编写服务

ios - 在 Openshift 上使用 Node.js 发送 iOS 推送通知

java - 如何使用 OpenShift 环境变量配置 MySQL 数据库

kubernetes - 更新了configMap.yaml,但未将其应用于Kubernetes pods

java - 如何通过 maven 从下载的 zip(解压)文件向项目添加依赖项

Eclipse - 找不到父 pom,但 Maven 构建实际上可以从 Eclipse 本身运行

kubernetes - 如何在 Kubernetes 中使用 CronJobs 运行 shell 脚本?

集群内的 Kubernetes 服务

kubernetes - Kubernetes 中的默认负载平衡