[ 
https://issues.apache.org/jira/browse/TOREE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15843631#comment-15843631
 ] 

Jakob Odersky commented on TOREE-362:
-------------------------------------

I'm not sure I understand your question. The ports always fall back to the same 
default value if not overriden. There shouldn't be any randomness involved.

Custom ports can be specified by exporting TOREE_OPTS to include the command 
line options that change them. E.g.

{code}export TOREE_OPTS="--stdin-port=10001 --control-port=10002 
--hb-port=10003 --shell-port=10004 --iopub-port=10005"{code}

> How do I define ports specifically?
> -----------------------------------
>
>                 Key: TOREE-362
>                 URL: https://issues.apache.org/jira/browse/TOREE-362
>             Project: TOREE
>          Issue Type: Bug
>            Reporter: Richard Quan
>            Priority: Blocker
>
> Hello,
> I am using https://github.com/apache/incubator-toree to connect to a Spark 
> instance.  For some reason, on my company's proxy, I can sometimes connect 
> and more often cannot.  It seems to depend on the port numbers i.e. the 533xx 
> numbers here: 
> 17/01/23 14:56:55 [INFO] o.a.t.Main$$anon$1 - Connection Profile: {
>   "stdin_port" : 53327,
>   "control_port" : 53328,
>   "hb_port" : 53329,
>   "shell_port" : 53325,
>   "iopub_port" : 53326,
>   "ip" : "127.0.0.1",
>   "transport" : "tcp",
>   "signature_scheme" : "hmac-sha256",
>   "key" : "0b022f16-eff6-4cd3-8056-3a81cd5f289a"
> }
> I am wondering if it is possible to specify the port numbers as it almost 
> seems random, using the run.sh file.  Perhaps the ${TOREE_OPTS}?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to