Issue in running 2 applications

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue in running 2 applications

Rishikesh Gawade
Hello there.
I have been using Apache Apex for a while. Recently, i tried to launch 2 Apex applications simultaneously on a single Hadoop cluster. However, only one of them entered the RUNNING state while the other one kept waiting in ACCEPTED state and transited into RUNNING state as soon as the first app was shut down. Could you please explain how to run 2 apps simultaneously?
Thanks in advance.
Regards,
Rishikesh
Reply | Threaded
Open this post in threaded view
|

Re: Issue in running 2 applications

Sandesh Hegde
Do you have enough resources in the cluster? Check both memory and cpu.

On Sat, Jan 13, 2018 at 1:33 PM Rishikesh Gawade <[hidden email]> wrote:
Hello there.
I have been using Apache Apex for a while. Recently, i tried to launch 2 Apex applications simultaneously on a single Hadoop cluster. However, only one of them entered the RUNNING state while the other one kept waiting in ACCEPTED state and transited into RUNNING state as soon as the first app was shut down. Could you please explain how to run 2 apps simultaneously?
Thanks in advance.
Regards,
Rishikesh
Reply | Threaded
Open this post in threaded view
|

Re: Issue in running 2 applications

Ambarish Pande-2
Hi Rishikesh,

It clearly looks like your cluster does not have enough resources. Here is something that you can do.
You can try to lower the memory allocated to each operator in both of your applications to be able to run both applications in available resources.

 <property>
    <name>apex.application.{appName}.operator.{opName}.attr.MEMORY_MB</name>
    <value>256</value> <!-- operator memory in mb -->
  </property>

Regards

On Sun, Jan 14, 2018 at 5:27 AM, Sandesh Hegde <[hidden email]> wrote:
Do you have enough resources in the cluster? Check both memory and cpu.

On Sat, Jan 13, 2018 at 1:33 PM Rishikesh Gawade <[hidden email]> wrote:
Hello there.
I have been using Apache Apex for a while. Recently, i tried to launch 2 Apex applications simultaneously on a single Hadoop cluster. However, only one of them entered the RUNNING state while the other one kept waiting in ACCEPTED state and transited into RUNNING state as soon as the first app was shut down. Could you please explain how to run 2 apps simultaneously?
Thanks in advance.
Regards,
Rishikesh