R Studio crashes when connecting to Spark with sparklyr

sparklyr

#1

Hi,

I am trying to execute sparklyr program from R Studio. Everytime my R session crashes. Please find attached screenshot for details.

R Studio - 3.4.2
Sparklyr - sparklyr_0.8.4

Please let me know how I can debug this.


Thanks,
Swaroop


#2

To scope down this crash, could you try running the same connection code from plain R using the terminal?


#3

Hi,

Please find attached screenshot of commands I ran from CLI.

When I tried connect to CDH I got below

> library(sparklyr)
> sc <- spark_connect(master = "yarn-client", version="2.2.0", spark_home = '/opt/cloudera/parcels/SPARK2-2.2.0.cloudera2-1.cdh5.12.0.p0.232957/lib/spark2/')

*** buffer overflow detected ***: /usr/lib64/R/bin/exec/R terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x7f5cef32e677]
/lib64/libc.so.6(+0x1167f2)[0x7f5cef32c7f2]
/lib64/libc.so.6(+0x1185d7)[0x7f5cef32e5d7]
/usr/lib64/R/modules//internet.so(+0x6015)[0x7f5bcf723015]
/usr/lib64/R/modules//internet.so(+0xe7ce)[0x7f5bcf72b7ce]
/usr/lib64/R/lib/libR.so(+0xbd086)[0x7f5cf1d3a086]
/usr/lib64/R/lib/libR.so(+0x110696)[0x7f5cf1d8d696]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f5cf1d9e3f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f5cf1da046f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x354)[0x7f5cf1d9e5b4]
/usr/lib64/R/lib/libR.so(+0x12527e)[0x7f5cf1da227e]
/usr/lib64/R/lib/libR.so(Rf_eval+0x585)[0x7f5cf1d9e7e5]
/usr/lib64/R/lib/libR.so(+0x12418c)[0x7f5cf1da118c]
/usr/lib64/R/lib/libR.so(Rf_eval+0x585)[0x7f5cf1d9e7e5]
/usr/lib64/R/lib/libR.so(+0x121d3e)[0x7f5cf1d9ed3e]
/usr/lib64/R/lib/libR.so(+0x11e34f)[0x7f5cf1d9b34f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f5cf1d9e3f8]
/usr/lib64/R/lib/libR.so(+0x121d3e)[0x7f5cf1d9ed3e]
/usr/lib64/R/lib/libR.so(+0x11e34f)[0x7f5cf1d9b34f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f5cf1d9e3f8]
/usr/lib64/R/lib/libR.so(+0x121d3e)[0x7f5cf1d9ed3e]
/usr/lib64/R/lib/libR.so(+0x11e34f)[0x7f5cf1d9b34f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f5cf1d9e3f8]
/usr/lib64/R/lib/libR.so(+0x121d3e)[0x7f5cf1d9ed3e]
/usr/lib64/R/lib/libR.so(+0x11e34f)[0x7f5cf1d9b34f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f5cf1d9e3f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f5cf1da046f]
/usr/lib64/R/lib/libR.so(+0x117e1a)[0x7f5cf1d94e1a]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f5cf1d9e3f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f5cf1da046f]
/usr/lib64/R/lib/libR.so(+0x117e1a)[0x7f5cf1d94e1a]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f5cf1d9e3f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f5cf1da046f]
/usr/lib64/R/lib/libR.so(+0x117e1a)[0x7f5cf1d94e1a]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f5cf1d9e3f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f5cf1da046f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x354)[0x7f5cf1d9e5b4]
/usr/lib64/R/lib/libR.so(+0x12418c)[0x7f5cf1da118c]
/usr/lib64/R/lib/libR.so(Rf_eval+0x585)[0x7f5cf1d9e7e5]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f5cf1da046f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x354)[0x7f5cf1d9e5b4]
/usr/lib64/R/lib/libR.so(+0x12418c)[0x7f5cf1da118c]
/usr/lib64/R/lib/libR.so(Rf_eval+0x585)[0x7f5cf1d9e7e5]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f5cf1da046f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x354)[0x7f5cf1d9e5b4]
/usr/lib64/R/lib/libR.so(+0x12527e)[0x7f5cf1da227e]
/usr/lib64/R/lib/libR.so(Rf_eval+0x585)[0x7f5cf1d9e7e5]
/usr/lib64/R/lib/libR.so(+0x12418c)[0x7f5cf1da118c]
/usr/lib64/R/lib/libR.so(Rf_eval+0x585)[0x7f5cf1d9e7e5]
/usr/lib64/R/lib/libR.so(Rf_eval+0x585)[0x7f5cf1d9e7e5]
/usr/lib64/R/lib/libR.so(+0x12418c)[0x7f5cf1da118c]
/usr/lib64/R/lib/libR.so(Rf_eval+0x585)[0x7f5cf1d9e7e5]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f5cf1da046f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x354)[0x7f5cf1d9e5b4]
/usr/lib64/R/lib/libR.so(+0x12527e)[0x7f5cf1da227e]
/usr/lib64/R/lib/libR.so(Rf_eval+0x585)[0x7f5cf1d9e7e5]
/usr/lib64/R/lib/libR.so(Rf_ReplIteration+0x232)[0x7f5cf1dc8032]
/usr/lib64/R/lib/libR.so(+0x14b411)[0x7f5cf1dc8411]
/usr/lib64/R/lib/libR.so(run_Rmainloop+0x4f)[0x7f5cf1dc84cf]
/usr/lib64/R/bin/exec/R(main+0x1b)[0x40080b]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f5cef2383d5]
/usr/lib64/R/bin/exec/R[0x40083b]
======= Memory map: ========
00400000-00401000 r-xp 00000000 ca:02 400390                             /usr/lib64/R/bin/exec/R
00600000-00601000 r--p 00000000 ca:02 400390                             /usr/lib64/R/bin/exec/R
00601000-00602000 rw-p 00001000 ca:02 400390                             /usr/lib64/R/bin/exec/R
025d0000-0eb38000 rw-p 00000000 00:00 0                                  [heap]
80200000-d5780000 rw-p 00000000 00:00 0
d5780000-580100000 ---p 00000000 00:00 0
580100000-5aab80000 rw-p 00000000 00:00 0
5aab80000-800000000 ---p 00000000 00:00 0
800000000-800080000 rw-p 00000000 00:00 0
800080000-840000000 ---p 00000000 00:00 0
7f5bcd36e000-7f5bcd37a000 r-xp 00000000 ca:02 39172                      /usr/lib64/libnss_files-2.17.so
7f5bcd37a000-7f5bcd579000 ---p 0000c000 ca:02 39172                      /usr/lib64/libnss_files-2.17.so
7f5bcd579000-7f5bcd57a000 r--p 0000b000 ca:02 39172                      /usr/lib64/libnss_files-2.17.so
7f5bcd57a000-7f5bcd57b000 rw-p 0000c000 ca:02 39172                      /usr/lib64/libnss_files-2.17.so
7f5bcd57b000-7f5bcd581000 rw-p 00000000 00:00 0
7f5bcd581000-7f5bcd583000 r-xp 00000000 ca:02 5751                       /usr/lib64/libfreebl3.so
7f5bcd583000-7f5bcd782000 ---p 00002000 ca:02 5751                       /usr/lib64/libfreebl3.so
7f5bcd782000-7f5bcd783000 r--p 00001000 ca:02 5751                       /usr/lib64/libfreebl3.so
7f5bcd783000-7f5bcd784000 rw-p 00002000 ca:02 5751                       /usr/lib64/libfreebl3.so
7f5bcd784000-7f5bcd78c000 r-xp 00000000 ca:02 5767                       /usr/lib64/libcrypt-2.17.so
7f5bcd78c000-7f5bcd98b000 ---p 00008000 ca:02 5767                       /usr/lib64/libcrypt-2.17.so
7f5bcd98b000-7f5bcd98c000 r--p 00007000 ca:02 5767                       /usr/lib64/libcrypt-2.17.so
7f5bcd98c000-7f5bcd98d000 rw-p 00008000 ca:02 5767                       /usr/lib64/libcrypt-2.17.so
7f5bcd98d000-7f5bcd9bb000 rw-p 00000000 00:00 0
7f5bcd9bb000-7f5bcd9d7000 r-xp 00000000 ca:02 13505                      /usr/lib64/libsasl2.so.3.0.0
7f5bcd9d7000-7f5bcdbd6000 ---p 0001c000 ca:02 13505                      /usr/lib64/libsasl2.so.3.0.0
7f5bcdbd6000-7f5bcdbd7000 r--p 0001b000 ca:02 13505                      /usr/lib64/libsasl2.so.3.0.0
7f5bcdbd7000-7f5bcdbd8000 rw-p 0001c000 ca:02 13505                      /usr/lib64/libsasl2.so.3.0.0
7f5bcdbd8000-7f5bcdc29000 r-xp 00000000 ca:02 13510                      /usr/lib64/libldap-2.4.so.2.10.7
7f5bcdc29000-7f5bcde28000 ---p 00051000 ca:02 13510                      /usr/lib64/libldap-2.4.so.2.10.7
7f5bcde28000-7f5bcde2b000 r--p 00050000 ca:02 13510                      /usr/lib64/libldap-2.4.so.2.10.7
7f5bcde2b000-7f5bcde2c000 rw-p 00053000 ca:02 13510                      /usr/lib64/libldap-2.4.so.2.10.7
7f5bcde2c000-7f5bcde3a000 r-xp 00000000 ca:02 10754                      /usr/lib64/liblber-2.4.so.2.10.7
7f5bcde3a000-7f5bce039000 ---p 0000e000 ca:02 10754                      /usr/lib64/liblber-2.4.so.2.10.7
7f5bce039000-7f5bce03a000 r--p 0000d000 ca:02 10754                      /usr/lib64/liblber-2.4.so.2.10.7
7f5bce03a000-7f5bce03b000 rw-p 0000e000 ca:02 10754                      /usr/lib64/liblber-2.4.so.2.10.7
7f5bce03b000-7f5bce075000 r-xp 00000000 ca:02 62493                      /usr/lib64/libnspr4.so
7f5bce075000-7f5bce274000 ---p 0003a000 ca:02 62493                      /usr/lib64/libnspr4.so
7f5bce274000-7f5bce275000 r--p 00039000 ca:02 62493                      /usr/lib64/libnspr4.so
7f5bce275000-7f5bce277000 rw-p 0003a000 ca:02 62493                      /usr/lib64/libnspr4.so
7f5bce277000-7f5bce279000 rw-p 00000000 00:00 0
7f5bce279000-7f5bce27d000 r-xp 00000000 ca:02 62497                      /usr/lib64/libplc4.soAborted

Thanks,
Swaroop


#4

SPARK_HOME seems to be set to CDH; therefore, to connect to Spark as a single local instance, run instead:

sc <- spark_connect(master = "local", spark_home = "")

However, this won't fix the crash you are experiencing in yarn-client mode, which is probably the approach you want to use since you have a Cloudera cluster.

Which version of R is installed? Mind sharing sessionInfo()? Depending on the version installed, I would consider upgrading R.


#5

Here is sessionInfo() output for your reference.

Thanks,
Swaroop


#6

Hi @swaroopatra! Welcome to RStudio Community!

As a note, it is extremely hard to help debug code and/or error messages when screenshots are posted. Posting screenshots, instead of actual code/error messages, is likely to decrease your chances of getting the help you are looking for in general. Instead of posting a screenshot, please copy and paste the code and error message and format the pasted code/error messages as shown below.

Put code that is inline (such as a function name, like mutate or filter ) inside of backticks ( mutate ) and chunks of code (including error messages and code copied from the console) can be put between sets of three backticks:

```
example <- foo %>%
  filter(a == 1)
```

This process can be done automatically by highlighting your code, either inline or in a chunk, and clicking the </> button on the toolbar of the reply window!

This will help keep our community tidy and help you get the help you are looking for!

For more information, please take a look at the community's FAQ on formating code


#7

Hi @tbradley. Thanks for the info. Noted.

Thanks,
Swaroop


#8

Have you disabled automatic saving and loading of the .RData file?

In the RStudio Server menu, navigate to Tools / Global Options /General and then set your settings as follows:

restore-rdata

  • Untick "Restore .RData into workspace at startup"
  • Set "Save workspace to .RData on exit:" to Never

#9

Yes. I have these setting in place.

Thanks,
Swaroop


#10

Hi @javierluraschi and Andrie ,

We are stuck here. There are clients waiting for this feature. Any input will really help me.

Thanks,
Swaroop


#11

Can you try connecting with:

sc <- spark_connect(master = "yarn-cluster", config = list())

I'm recommending this since I notice a --driver-class-path parameter that something else is setting, using config=list() should at least prevent this.


#12

@javierluraschi,

I tried below program.

library(sparklyr)
sc <- spark_connect(master = "yarn-cluster", config = list())

R-studio crashed.
From CLI

library(sparklyr)
sc <- spark_connect(master = "yarn-cluster", config = list())
Error in curl::curl_fetch_memory(url, handle = handle) :
Received HTTP code 403 from proxy after CONNECT
In addition: Warning messages:
1: In doTryCatch(return(expr), name, parentenv, handler) :
Failed to open :8033/ws/v1/cluster/info with status 404.
2: In doTryCatch(return(expr), name, parentenv, handler) :
Failed to open :8033/ws/v1/cluster/info with status 404.
sc <- spark_connect(master = "yarn-cluster", config = list())
*** buffer overflow detected ***: /usr/lib64/R/bin/exec/R terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x7f95114f7677]
/lib64/libc.so.6(+0x1167f2)[0x7f95114f57f2]
/lib64/libc.so.6(+0x1185d7)[0x7f95114f75d7]
/usr/lib64/R/modules//internet.so(+0x6015)[0x7f93f1b13015]
/usr/lib64/R/modules//internet.so(+0xe7ce)[0x7f93f1b1b7ce]
/usr/lib64/R/lib/libR.so(+0xbd086)[0x7f9513f03086]
/usr/lib64/R/lib/libR.so(+0x110696)[0x7f9513f56696]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f9513f6946f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x354)[0x7f9513f675b4]
/usr/lib64/R/lib/libR.so(+0x12527e)[0x7f9513f6b27e]
/usr/lib64/R/lib/libR.so(+0x1107ef)[0x7f9513f567ef]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x121d3e)[0x7f9513f67d3e]
/usr/lib64/R/lib/libR.so(+0x11e34f)[0x7f9513f6434f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x121d3e)[0x7f9513f67d3e]
/usr/lib64/R/lib/libR.so(+0x11e34f)[0x7f9513f6434f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f9513f6946f]
/usr/lib64/R/lib/libR.so(+0x117e1a)[0x7f9513f5de1a]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f9513f6946f]
/usr/lib64/R/lib/libR.so(+0x117e1a)[0x7f9513f5de1a]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x121d3e)[0x7f9513f67d3e]
/usr/lib64/R/lib/libR.so(+0x11e34f)[0x7f9513f6434f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x121d3e)[0x7f9513f67d3e]
/usr/lib64/R/lib/libR.so(+0x11e34f)[0x7f9513f6434f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x121d3e)[0x7f9513f67d3e]
/usr/lib64/R/lib/libR.so(+0x11e34f)[0x7f9513f6434f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x121d3e)[0x7f9513f67d3e]
/usr/lib64/R/lib/libR.so(+0x11e34f)[0x7f9513f6434f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f9513f6946f]
/usr/lib64/R/lib/libR.so(+0x117e1a)[0x7f9513f5de1a]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f9513f6946f]
/usr/lib64/R/lib/libR.so(+0x117e1a)[0x7f9513f5de1a]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f9513f6946f]
/usr/lib64/R/lib/libR.so(+0x117e1a)[0x7f9513f5de1a]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f9513f6946f]
/usr/lib64/R/lib/libR.so(+0x117e1a)[0x7f9513f5de1a]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f9513f6946f]
/usr/lib64/R/lib/libR.so(Rf_eval+0x354)[0x7f9513f675b4]
/usr/lib64/R/lib/libR.so(+0x12527e)[0x7f9513f6b27e]
/usr/lib64/R/lib/libR.so(Rf_eval+0x585)[0x7f9513f677e5]
/usr/lib64/R/lib/libR.so(+0x12418c)[0x7f9513f6a18c]
/usr/lib64/R/lib/libR.so(Rf_eval+0x585)[0x7f9513f677e5]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f9513f6946f]
/usr/lib64/R/lib/libR.so(+0x117e1a)[0x7f9513f5de1a]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f9513f6946f]
/usr/lib64/R/lib/libR.so(+0x117e1a)[0x7f9513f5de1a]
/usr/lib64/R/lib/libR.so(Rf_eval+0x198)[0x7f9513f673f8]
/usr/lib64/R/lib/libR.so(+0x12346f)[0x7f9513f6946f]
/usr/lib64/R/lib/libR.so(+0x117e1a)[0x7f9513f5de1a]
======= Memory map: ========
00400000-00401000 r-xp 00000000 ca:02 400390 /usr/lib64/R/bin/exec/R
00600000-00601000 r--p 00000000 ca:02 400390 /usr/lib64/R/bin/exec/R
00601000-00602000 rw-p 00001000 ca:02 400390 /usr/lib64/R/bin/exec/R
00744000-0cc8b000 rw-p 00000000 00:00 0 [heap]
80200000-d5780000 rw-p 00000000 00:00 0
d5780000-580100000 ---p 00000000 00:00 0
580100000-5aab80000 rw-p 00000000 00:00 0
5aab80000-800000000 ---p 00000000 00:00 0
800000000-800080000 rw-p 00000000 00:00 0
800080000-840000000 ---p 00000000 00:00 0
7f93e8000000-7f93e8021000 rw-p 00000000 00:00 0
7f93e8021000-7f93ec000000 ---p 00000000 00:00 0
7f93ee79b000-7f93ee79c000 ---p 00000000 00:00 0
7f93ee79c000-7f93eef9c000 rw-p 00000000 00:00 0
7f93eef9c000-7f93eefa6000 r-xp 00000000 ca:02 538076 /usr/lib64/R/library/curl/libs/curl.so
7f93eefa6000-7f93ef1a6000 ---p 0000a000 ca:02 538076 /usr/lib64/R/library/curl/libs/curl.so
7f93ef1a6000-7f93ef1a7000 r--p 0000a000 ca:02 538076 /usr/lib64/R/library/curl/libs/curl.so
7f93ef1a7000-7f93ef1a8000 rw-p 0000b000 ca:02 538076 /usr/lib64/R/library/curl/libs/curl.so
7f93ef1a8000-7f93ef307000 r-xp 00000000 ca:02 7963 /usr/lib64/libxml2.so.2.9.1
7f93ef307000-7f93ef506000 ---p 0015f000 ca:02 7963 /usr/lib64/libxml2.so.2.9.1
7f93ef506000-7f93ef50e000 r--p 0015e000 ca:02 7963 /usr/lib64/libxml2.so.2.9.1
7f93ef50e000-7f93ef510000 rw-p 00166000 ca:02 7963 /usr/lib64/libxml2.so.2.9.1
7f93ef510000-7f93ef512000 rw-p 00000000 00:00 0
7f93ef512000-7f93ef55a000 r-xp 00000000 ca:02 1456755 /usr/lib64/R/library/xml2/libs/xml2.so
7f93ef55a000-7f93ef75a000 ---p 00048000 ca:02 1456755 /usr/lib64/R/library/xml2/libs/xml2.so
7f93ef75a000-7f93ef75b000 r--p 00048000 ca:02 1456755 /usr/lib64/R/library/xml2/libs/xml2.so
7f93ef75b000-7f93ef75c000 rw-p 00049000 ca:02 1456755 /usr/lib64/R/library/xml2/libs/xml2.so
7f93ef75c000-7f93ef75e000 rw-p 00000000 00:00 0
7f93ef75e000-7f93ef76a000 r-xp 00000000 ca:02 39172 /usr/lib64/libnss_files-2.17.so
7f93ef76a000-7f93ef969000 ---p 0000c000 ca:02 39172 /usr/lib64/libnss_files-2.17.so
7f93ef969000-7f93ef96a000 r--p 0000b000 ca:02 39172 /usr/lib64/libnss_files-2.17.so
7f93ef96a000-7f93ef96b000 rw-p 0000c000 ca:02 39172 /usr/lib64/libnss_files-2.17.so
7f93ef96b000-7f93ef971000 rw-p 00000000 00:00 0
7f93ef971000-7f93ef973000 r-xp 00000000 ca:02 5751 /usr/lib64/libfreebl3.so
7f93ef973000-7f93efb72000 ---p 00002000 ca:02 5751 /usr/lib64/libfreebl3.so
7f93efb72000-7f93efb73000 r--p 00001000 ca:02 5751 /usr/lib64/libfreebl3.so
7f93efb73000-7f93efb74000 rw-p 00002000 ca:02 5751 /usr/lib64/libfreebl3.so
7f93efb74000-7f93efb7c000 r-xp 00000000 ca:02 5767 /usr/lib64/libcrypt-2.17.so
7f93efb7c000-7f93efd7b000 ---p 00008000 ca:02 5767 /usr/lib64/libcrypt-2.17.so
7f93efd7b000-7f93efd7c000 r--p 00007000 ca:02 5767 /usr/lib64/libcrypt-2.17.so
7f93efd7c000-7f93efd7d000 rw-p 00008000 ca:02 5767 /usr/lib64/libcrypt-2.17.so
7f93efd7d000-7f93efdab000 rw-p 00000000 00:00 0
7f93efdab000-7f93efdc7000 r-xp 00000000 ca:02 13505 /usr/lib64/libsasl2.so.3.0.0
7f93efdc7000-7f93effc6000 ---p 0001c000 ca:02 13505 /usr/lib64/libsasl2.so.3.0.0Aborted

First spark_connect attempt threw network error. The port information in the URL for rest service looks wrong. RM rest service port is 8090 not 8033.
Second spark_connect attempt threw buffer error.

Thanks,
Swaroop