error in Elasticsearch

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

error in Elasticsearch

alaa
*Hallo

I try to implement this example to write the results of Popular Places into
an Elasticsearch index.

But when I run a code .. there was some Error appear *


<http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/file/t1965/Screenshot_from_2019-09-06_13-29-15.png>


*
and when i set the path-to-input-file .. also there was an error appear

<http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/file/t1965/Screenshot_from_2019-09-06_13-36-10.png>
*

*Can you help me which parameter should i put in this Line

String input = params.getRequired("input");*


Thank you



--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: error in Elasticsearch

Gary Yao-4
Hi,

You are not supposed to change that part of the exercise code. You have to
pass the path to the input file as a program argument (e.g., --input
/path/to/file). See [1] and [2] on how to configure program arguments in
IntelliJ.

Best,
Gary

[1] https://www.jetbrains.com/help/idea/run-debug-configuration-application.html#1
[2] https://stackoverflow.com/questions/2066307/how-do-you-input-commandline-argument-in-intellij-idea

On Fri, Sep 6, 2019 at 1:41 PM alaa <[hidden email]> wrote:
*Hallo

I try to implement this example to write the results of Popular Places into
an Elasticsearch index.

But when I run a code .. there was some Error appear *


<http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/file/t1965/Screenshot_from_2019-09-06_13-29-15.png>


*
and when i set the path-to-input-file .. also there was an error appear

<http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/file/t1965/Screenshot_from_2019-09-06_13-36-10.png>
*

*Can you help me which parameter should i put in this Line

String input = params.getRequired("input");*


Thank you



--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: error in Elasticsearch

alaa
Reply | Threaded
Open this post in threaded view
|

Re: error in Elasticsearch

Gary Yao-4
Program arguments should be set to "--input /home/alaa/nycTaxiRides.gz" (without the quotes).

On Wed, Sep 11, 2019 at 10:39 AM alaa <[hidden email]> wrote:
 Hallo

I put arguments but the same error appear .. what should i do ?


<http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/file/t1965/Screenshot_from_2019-09-11_10-34-42.png>



--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: error in Elasticsearch

alaa