class
bluemix extends AnyRef
Instance Constructors
-
new
bluemix(sc: SparkContext, name: String, creds: HashMap[String, String], swift2d_driver: String = ..., public: Boolean = false)
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
val
hadoopConf: Configuration
-
def
hashCode(): Int
-
def
ifexist(credsin: HashMap[String, String], var1: String, var2: String): String
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
val
prefix: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
val
tenant: String
-
def
toString(): String
-
def
url(container_name: String, object_name: String): String
-
val
username: String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
bluemix class sets up a swift connection between an IBM Spark service instance and an Object Storage instance provisioned through IBM Bluemix.
Constructor arguments:
sparkcontext: a SparkContext object.
credentials: a dictionary with the following required keys:
auth_url
project_id (or projectId)
user_id (or userId)
password
region
name: string that identifies this configuration. You can use any string you like. This allows you to create multiple configurations to different Object Storage accounts. This is not required at the moment, since credentials['name'] is still supported.
When using this from a IBM Spark service instance that is configured to connect to particular Bluemix object store instances, the values for these credentials can be obtained by clicking on the 'insert to code' link just below a data source.