Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposing namenode to external application #4

Open
siganapathy opened this issue May 27, 2017 · 1 comment
Open

Exposing namenode to external application #4

siganapathy opened this issue May 27, 2017 · 1 comment

Comments

@siganapathy
Copy link

I deployed your setup on our existing kubernetes cluster. As of now, i am only able to access zeppelin UI externally. i want my external client application to push data to hdfs. But looks like it is a headless service and not exposed outside the cluster. If i try to change the type of service to NodePort or LoadBalancer, then the jobs fail. What changes can i make inorder to expose the namenode to external applications?

@premkumar-masilamani
Copy link

Hi @siganapathy - The headless service present in the yarn-nm-statefulset.yaml is to enable unique network identifier for name node, so that the data nodes can discover the name node. Don't touch that. Instead create a new service with the type LoadBalancer.

---
apiVersion: v1
kind: Service
metadata:
  name: hdfs-name-node-service-external
spec:
  ports:
    - name: http
      port: 50070
      targetPort: 50070
  selector:
    component: hdfs-nn
  type: LoadBalancer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants