spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicholas Chammas <nicholas.cham...@gmail.com>
Subject Re: Silencing messages from Ivy when calling spark-submit
Date Mon, 12 Mar 2018 23:16:39 GMT
Looks like the only way to change the Ivy log setting, given how we're
using it in Spark, is via code
<https://stackoverflow.com/questions/49000342/suppress-messages-from-spark-submit-when-loading-packages/49188333#49188333>.
This makes me think: People often have trouble
<https://stackoverflow.com/questions/27781187/how-to-stop-messages-displaying-on-spark-console>
(77K
views) silencing undesired output from Spark.

Would it make sense to have a convenience option in spark-submit that lets
you set a global log level for Ivy, log4j, and anything else? i.e. Without
needing to edit any separate files or look at other projects' documentation.

It sure would be handy for everyday use, but I wonder if there is a design
reason we wouldn't want to add something like that.

On Tue, Mar 6, 2018 at 1:14 PM Bryan Cutler <cutlerb@gmail.com> wrote:

> Cool, hopefully it will work.  I don't know what setting that would be
> though, but it seems like it might be somewhere under here
> http://ant.apache.org/ivy/history/latest-milestone/settings/outputters.html.
> It's pretty difficult to sort through the docs, and I often found myself
> looking at the source to understand some settings.  If you happen to figure
> out the answer, please report back here.  I'm sure others would find it
> useful too.
>
> Bryan
>
> On Mon, Mar 5, 2018 at 3:50 PM, Nicholas Chammas <
> nicholas.chammas@gmail.com> wrote:
>
>> Oh, I didn't know about that. I think that will do the trick.
>>
>> Would you happen to know what setting I need? I'm looking here
>> <http://ant.apache.org/ivy/history/latest-milestone/settings.html>, but
>> it's a bit overwhelming. I'm basically looking for a way to set the overall
>> Ivy log level to WARN or higher.
>>
>> Nick
>>
>> On Mon, Mar 5, 2018 at 2:11 PM Bryan Cutler <cutlerb@gmail.com> wrote:
>>
>>> Hi Nick,
>>>
>>> Not sure about changing the default to warnings only because I think
>>> some might find the resolution output useful, but you can specify your own
>>> ivy settings file with "spark.jars.ivySettings" to point to your
>>> ivysettings.xml file.  Would that work for you to configure it there?
>>>
>>> Bryan
>>>
>>> On Mon, Mar 5, 2018 at 8:20 AM, Nicholas Chammas <
>>> nicholas.chammas@gmail.com> wrote:
>>>
>>>> I couldn’t get an answer anywhere else, so I thought I’d ask here.
>>>>
>>>> Is there a way to silence the messages that come from Ivy when you call
>>>> spark-submit with --packages? (For the record, I asked this question on
>>>> Stack Overflow <https://stackoverflow.com/q/49000342/877069>.)
>>>>
>>>> Would it be a good idea to configure Ivy by default to only output
>>>> warnings or errors?
>>>>
>>>> Nick
>>>> ​
>>>>
>>>
>>>
>

Mime
View raw message