How to allocate 16 cores and 64 GB ram in spark 2.0.2 local mode?










0














I'm new to use spark and trying to calculate huge data and send it to the target Database.
Data file amounts approx 3GB and I'm available on A server
"1 CPU, physical 16 cores(32 logical cores), 64 GB RAM."



Due to calculate my data and transmit it to target DB, I touch spark-env.sh in conf folder and add two lines
"spark_executor_memory=4g spark_driver_memory 4g"
and also I am planning to use whole cores. (ie)local[*] in my model code, but wonder which core, between physical and logical, is close to do spark



Before this, I packaged my logic file, holding ".jars".
I submit my jar file several times But doesn`t work and I notice there are errors
first one "GC overhead Limit" -> do not know why it signs
Second one "heartBeatResponse(false)" -> it happens when shuffling groupBy or transmitting DB server
I still get confused how to tune spark at the moment of local mode.
Really hopes anyone give solution to sort it out.










share|improve this question























  • I would suggest going step-by-step starting from just pulling the data into a DF and then further you may go for custom aggregations one by one.
    – shriyog
    Nov 12 at 10:35















0














I'm new to use spark and trying to calculate huge data and send it to the target Database.
Data file amounts approx 3GB and I'm available on A server
"1 CPU, physical 16 cores(32 logical cores), 64 GB RAM."



Due to calculate my data and transmit it to target DB, I touch spark-env.sh in conf folder and add two lines
"spark_executor_memory=4g spark_driver_memory 4g"
and also I am planning to use whole cores. (ie)local[*] in my model code, but wonder which core, between physical and logical, is close to do spark



Before this, I packaged my logic file, holding ".jars".
I submit my jar file several times But doesn`t work and I notice there are errors
first one "GC overhead Limit" -> do not know why it signs
Second one "heartBeatResponse(false)" -> it happens when shuffling groupBy or transmitting DB server
I still get confused how to tune spark at the moment of local mode.
Really hopes anyone give solution to sort it out.










share|improve this question























  • I would suggest going step-by-step starting from just pulling the data into a DF and then further you may go for custom aggregations one by one.
    – shriyog
    Nov 12 at 10:35













0












0








0







I'm new to use spark and trying to calculate huge data and send it to the target Database.
Data file amounts approx 3GB and I'm available on A server
"1 CPU, physical 16 cores(32 logical cores), 64 GB RAM."



Due to calculate my data and transmit it to target DB, I touch spark-env.sh in conf folder and add two lines
"spark_executor_memory=4g spark_driver_memory 4g"
and also I am planning to use whole cores. (ie)local[*] in my model code, but wonder which core, between physical and logical, is close to do spark



Before this, I packaged my logic file, holding ".jars".
I submit my jar file several times But doesn`t work and I notice there are errors
first one "GC overhead Limit" -> do not know why it signs
Second one "heartBeatResponse(false)" -> it happens when shuffling groupBy or transmitting DB server
I still get confused how to tune spark at the moment of local mode.
Really hopes anyone give solution to sort it out.










share|improve this question















I'm new to use spark and trying to calculate huge data and send it to the target Database.
Data file amounts approx 3GB and I'm available on A server
"1 CPU, physical 16 cores(32 logical cores), 64 GB RAM."



Due to calculate my data and transmit it to target DB, I touch spark-env.sh in conf folder and add two lines
"spark_executor_memory=4g spark_driver_memory 4g"
and also I am planning to use whole cores. (ie)local[*] in my model code, but wonder which core, between physical and logical, is close to do spark



Before this, I packaged my logic file, holding ".jars".
I submit my jar file several times But doesn`t work and I notice there are errors
first one "GC overhead Limit" -> do not know why it signs
Second one "heartBeatResponse(false)" -> it happens when shuffling groupBy or transmitting DB server
I still get confused how to tune spark at the moment of local mode.
Really hopes anyone give solution to sort it out.







scala performance apache-spark apache-spark-standalone memory-overhead






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 at 10:26









shriyog

465616




465616










asked Nov 12 at 10:09









Prorsum J

1




1











  • I would suggest going step-by-step starting from just pulling the data into a DF and then further you may go for custom aggregations one by one.
    – shriyog
    Nov 12 at 10:35
















  • I would suggest going step-by-step starting from just pulling the data into a DF and then further you may go for custom aggregations one by one.
    – shriyog
    Nov 12 at 10:35















I would suggest going step-by-step starting from just pulling the data into a DF and then further you may go for custom aggregations one by one.
– shriyog
Nov 12 at 10:35




I would suggest going step-by-step starting from just pulling the data into a DF and then further you may go for custom aggregations one by one.
– shriyog
Nov 12 at 10:35

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53259908%2fhow-to-allocate-16-cores-and-64-gb-ram-in-spark-2-0-2-local-mode%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53259908%2fhow-to-allocate-16-cores-and-64-gb-ram-in-spark-2-0-2-local-mode%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Top Tejano songwriter Luis Silva dead of heart attack at 64

政党

天津地下鉄3号線