Member since
05-30-2018
1322
Posts
715
Kudos Received
148
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 4038 | 08-20-2018 08:26 PM | |
| 1936 | 08-15-2018 01:59 PM | |
| 2369 | 08-13-2018 02:20 PM | |
| 4100 | 07-23-2018 04:37 PM | |
| 5006 | 07-19-2018 12:52 PM |
06-28-2016
10:19 PM
5 Kudos
How to get a docker image up and running which encapulates a PyCharm IDE integrated with spark and pybuilder. The IDE reside on the docker container and will be display on your laptop/machine. This is to isolate your development enviorment with has spark integrated with spark. Why? I am a spark developer and spend significant time trying to build a integrated environment. I am spending way too much time on integration before doing what I get paid to do --- Develop! Creating a isolated environment which is integrated with spark and a CIT, easily spun up and down, and repeatable is something which would accelerate my efficiency.
Download latest virtualbox from here. To run docker containers or build images a docker machine is required. Download docker machine from here. Download xQuartz to display the IDE on your laptop. View my docker page for information on the docker image here. Clone my PyCharm github repo. You are doing this bootstrap code sample code I have built to your docker container during launch. For example I performed git clone in my /Users/smanjee/docktest
git clone https://github.com/sunileman/pycharm.git To start this tutorial start docker machine in a new terminal. For example on my laptop here is the start script :/Applications/Docker/Docker*app/Contents/Resources/Scripts/start.sh Run docker-machine env to check the IP your machine is assigned (informational only) Pull the image docker pull sunileman/pycharm Build the image docker build -t sunileman/pycharm . Open another terminal and start port forwarding socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" Get your IP address (not docker machines) Run the image docker run -it -v /tmp/.X11-unix/:/tmp/.X11-unix/ -v ~/docktest/pycharm/PycharmProjects:/root/PycharmProjects -v ~/docktest/pycharm/.Pycharm40:/root/.PyCharm40 -e DISPLAY=XXX.XX.XX.X:0 --rm sunileman/pycharm Replace XXX.xx.xx.x with your IP replace ~/docktest/pycharm/PycharmProjects with your path to pycharm which you downloaded from my github repo Replace ~/docktest/pycharm/.Pycharm40 with your path to pycharm which you downloaded from my github repo Click on I do not have previous versions Click on OK Click on OPEN to open the project you mounted to the docker container Find the PyCharm project to open
Now the project has been imported
So you have the project imported into your IDE which is running within the docker container. To prove the IDE is connected/integrated with spark simply run the python file and you will see spark modules have been imported
... View more
Labels:
06-28-2016
07:41 AM
@revan wabale Did the links I provided answer your question?
... View more
06-24-2016
05:41 PM
@perdos Will it continue to Consul or saltstack for recipe?
... View more
06-24-2016
05:16 PM
@Attila Kanto Ok so I need to do bootstrap activity (recipe). This functianlity has been removed. How do I do this now on 1.3.x?
... View more
06-24-2016
05:12 PM
@David Whitmore I would enable virtualenv which will allow you to install n many versions of python. This will isolate your dev environment.
... View more
06-24-2016
04:14 PM
@Attila Kanto If I understand you correctly in the coming release we will able to bootstrap to docker using saltstack?
... View more
06-24-2016
01:18 PM
Where is recipes for cloudbreak on 1.3.1? I am logged into https://cloudbreak.sequenceiq.com and I don't see this option any longer. It used to be there in previous releases. Please advise.
... View more
Labels:
- Labels:
-
Hortonworks Cloudbreak
06-24-2016
01:14 PM
1 Kudo
Does NiFi support User LDAP Authentication?
... View more
Labels:
- Labels:
-
Apache NiFi
06-23-2016
11:41 PM
2 Kudos
@revan wabale you have many sources. On HWX there is guide on to configure and sizing your hadoop cluster here. You can also go to cluster sizing guide here. Additionally you can use the cluster planning guide here.
... View more