RE: Utils and Logging cannot be accessed in package ....

2016-06-27 Thread Paolo Patierno
Yes I have just realized that the code I was reading was in the 
org.apache.spark package related to customer receiver implementations.

Thanks.

Paolo PatiernoSenior Software Engineer (IoT) @ Red Hat
Microsoft MVP on Windows Embedded & IoTMicrosoft Azure Advisor 
Twitter : @ppatierno
Linkedin : paolopatierno
Blog : DevExperience

From: yuzhih...@gmail.com
Date: Mon, 27 Jun 2016 10:28:50 -0700
Subject: Re: Utils and Logging cannot be accessed in package 
To: ppatie...@live.com
CC: user@spark.apache.org

AFAICT Utils is private:
private[spark] object Utils extends Logging {

So is Logging:
private[spark] trait Logging {

FYI
On Mon, Jun 27, 2016 at 8:20 AM, Paolo Patierno  wrote:



Hello,

I'm trying to use the Utils.createTempDir() method importing 
org.apache.spark.util.Utils but the scala compiler says me that :

object Utils in package util cannot be accessed in package org.apache.spark.util

I'm facing the same problem with Logging.

My sbt file has following dependency :

"org.apache.spark" %% "spark-core" % sparkVersion.value % "provided" classifier 
"tests"

where spark version is "2.0.0-SNAPSHOT".

Any ideas about this problem ?

Thanks,
Paolo.
  

  

Re: Utils and Logging cannot be accessed in package ....

2016-06-27 Thread Ted Yu
AFAICT Utils is private:

private[spark] object Utils extends Logging {

So is Logging:

private[spark] trait Logging {

FYI

On Mon, Jun 27, 2016 at 8:20 AM, Paolo Patierno  wrote:

> Hello,
>
> I'm trying to use the Utils.createTempDir() method importing
> org.apache.spark.util.Utils but the scala compiler says me that :
>
> object Utils in package util cannot be accessed in package
> org.apache.spark.util
>
> I'm facing the same problem with Logging.
>
> My sbt file has following dependency :
>
> "org.apache.spark" %% "spark-core" % sparkVersion.value % "provided"
> classifier "tests"
>
> where spark version is "2.0.0-SNAPSHOT".
>
> Any ideas about this problem ?
>
> Thanks,
> Paolo.
>


Utils and Logging cannot be accessed in package ....

2016-06-27 Thread Paolo Patierno
Hello,

I'm trying to use the Utils.createTempDir() method importing 
org.apache.spark.util.Utils but the scala compiler says me that :

object Utils in package util cannot be accessed in package org.apache.spark.util

I'm facing the same problem with Logging.

My sbt file has following dependency :

"org.apache.spark" %% "spark-core" % sparkVersion.value % "provided" classifier 
"tests"

where spark version is "2.0.0-SNAPSHOT".

Any ideas about this problem ?

Thanks,
Paolo.