[cid:[email protected]]
发件人: Alexey Goncharuk [mailto:[email protected]] 发送时间: 2015年8月29日 3:13 收件人: [email protected] 主题: Re: How to get a instance of IgniteContext in spark-shell? I assume you are using a 1.3 release, here you can either create an instance of IgniteConfiguration manually: val cfg = new IgniteConfiguration() // configure Ignite val ic = new IgniteContext[Integer, Integer](sc, () => cfg) or pass a path to the Ignite configuration directly to the IgniteContext constructor: val ic = new IgniteContext[Integer, Integer](sc, "path/to/igntie-config.xml") 2015-08-28 1:52 GMT-07:00 endian675 <[email protected]<mailto:[email protected]>>: You can't pass a file path String to IgniteConfiguration, it has either a default constructor IgniteConfiguration() or a constructor that takes another IgniteConfiguration instance (i.e., a it's a copy-constructor) IgniteConfiguration(IgniteConfiguration config) In Java I call the static method Ignition.start("path-to-ignite-config.xml") -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-get-a-instance-of-IgniteContext-in-spark-shell-tp1180p1187.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
