Giter Club home page Giter Club logo

Comments (6)

liyinan926 avatar liyinan926 commented on June 29, 2024

In your import block, can you try using k8s.io/spark-on-k8s-operator/pkg/client/clientset/versioned and k8s.io/spark-on-k8s-operator/pkg/apis/sparkoperator.k8s.io/v1alpha1?

from spark-on-k8s-operator.

scotthew1 avatar scotthew1 commented on June 29, 2024

same problem

import (
	sparkClientset "k8s.io/spark-on-k8s-operator/pkg/client/clientset/versioned"
	sparkV1aplpha1 "k8s.io/spark-on-k8s-operator/pkg/apis/sparkoperator.k8s.io/v1alpha1"
)
$ go get
# cd .; git clone https://github.com/kubernetes/spark-on-k8s-operator /Users/scott/go/src/k8s.io/spark-on-k8s-operator
Cloning into '/Users/scott/go/src/k8s.io/spark-on-k8s-operator'...
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
package k8s.io/spark-on-k8s-operator/pkg/apis/sparkoperator.k8s.io/v1alpha1: exit status 128
package k8s.io/spark-on-k8s-operator/pkg/client/clientset/versioned: cannot find package "k8s.io/spark-on-k8s-operator/pkg/client/clientset/versioned" in any of:
	/usr/local/Cellar/go/1.10/libexec/src/k8s.io/spark-on-k8s-operator/pkg/client/clientset/versioned (from $GOROOT)
	/Users/scott/go/src/k8s.io/spark-on-k8s-operator/pkg/client/clientset/versioned (from $GOPATH)

k8s.io/spark-on-k8s-operator seems to be resolving to https://github.com/kubernetes/spark-on-k8s-operator but that's not a repo that appears to exist. is it perhaps a private repo?

from spark-on-k8s-operator.

liyinan926 avatar liyinan926 commented on June 29, 2024

Yes, currently k8s.io/spark-on-k8s-operator will not resolve. I think what you need to do is:

  1. git clone github.com/GoogleCloudPlatform/spark-on-k8s-operator $GOPATH/src/k8s.io/spark-on-k8s-operator.
  2. Use k8s.io/spark-on-k8s-operator/pkg/client/clientset/versioned and k8s.io/spark-on-k8s-operator/pkg/apis/sparkoperator.k8s.io/v1alpha1 in imports.

from spark-on-k8s-operator.

scotthew1 avatar scotthew1 commented on June 29, 2024
git clone github.com/GoogleCloudPlatform/spark-on-k8s-operator $GOPATH/src/k8s.io/spark-on-k8s-operator

gets the job done (notably for anyone else reading this you left out src above)

tho it would be nice if this weren't necessary.. either by having k8s.io/spark-on-k8s-operator resolve properly or regen the code to reference github.com/GoogleCloudPlatform/spark-on-k8s-operator

from spark-on-k8s-operator.

liyinan926 avatar liyinan926 commented on June 29, 2024

I will update the code to reference github.com/GoogleCloudPlatform/spark-on-k8s-operator since this is not under the kubernetes project anyway.

from spark-on-k8s-operator.

liyinan926 avatar liyinan926 commented on June 29, 2024

Opened #154. Closing this.

from spark-on-k8s-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.