ishan-jain wrote
> But for this i have to open ignite with IGFS config. How will i use ignite
> then with normal config?
>
> On Wed, Jun 7, 2017 at 3:55 PM, Yermek <
> yermek.kumarbekov@
> > wrote:
>
>> Hi, maybe like this:
>>
>> try (
>> InputStream in = fs.open(new IgfsPath(dataPath));
>> BufferedReader buffer = new BufferedReader(new
>> InputStreamReader(in));
>> IgniteDataStreamer<Integer,String> dsStreamer =
>> ignite.dataStreamer(cache.getName())
>> )
>> {
>> AtomicInteger i = new AtomicInteger();
>> buffer.lines().forEach(s ->
>> dsStreamer.add(i.getAndIncrement(),s));
>> }
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://apache-ignite-users.
>> 70518.x6.nabble.com/IGFS-Question-tp13447p13463.html
>> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>>
Why don't you use config file? Just copy it to client machine and change
Client_mode to true.
Or you should set configuration direct in your program without config file.
How to do it you can find on official Ignite site.
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/IGFS-Question-tp13447p13514.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.