2

I've downloaded Apache Apex 3.5.0 along with Malhar 3.5.0.

I've successfully started the apex client and submitted the Yahoo Finance demo example to our YARN cluster (running CDH 5.10). The cluster is running and configured properly (many Spark and MR jobs are running on it).

I see the application I submitted as RUNNING in YARN as well as in the Apex cli. However when I try to connect to the Application Master I get a 404.

org.apache.hadoop.yarn.webapp.WebAppException: /: controller for default not found

I also tried directly to connect to the appMasterTrackingUrl reported by get-app-info command, and I get the same error.

I tried a couple of apex examples, and I always get the same error.

Any idea why?

Tony
  • 1,214
  • 14
  • 18

2 Answers2

4

It is somewhat expected. Add "/ws/v2/stram/info" to the URL path

Vlad Rozov
  • 131
  • 3
  • I was expecting some UI like other Application Manager. I wonder why there is not a default redirect to a page with documentation or so. – Tony Feb 28 '17 at 21:32
  • 1
    Apache Apex applications provide only REST API that is currently documented in the source code only AFAIK. The UI similar to other Application Managers is provided by [Datatorrent RTS](https://www.datatorrent.com/download/). – Vlad Rozov Feb 28 '17 at 22:39
  • Not sure if it would worth a new question, but how can I see the output of a console output operator when using Yarn ? – Tony Mar 02 '17 at 15:05
  • Yes, it worth a new question. You may also post questions to user@apex.apache.org. – Vlad Rozov Mar 03 '17 at 21:27
  • I finally found where it is writing. the output is in hdfs under /tmp/fileOutput – Tony Mar 21 '17 at 14:24
2

When you connect to the App Master you need to provide the complete URL for a REST API to invoke. There is nothing to show/return for "/" so what you are seeing is expected. What are you trying to do connecting to the App Master?

Sanjay
  • 141
  • 1
  • I guess I was expecting some kind of UI similar to the one we have when are running spark jobs. Or some documentation to tell me how to query the API. I was not expecting a stack trace. – Tony Feb 28 '17 at 21:37