Mailing List Archive

Could not run benchmark for custom codec in Lucene 9
Hi Members,

We are able to build and run benchmark using various algo file but when we
want to test custom codec like SimpleTextCodec, we are encountering issue
as mentioned below:

Command ran

gradle run -PtaskAlg=conf/indexing-flush-by-RAM-multithreaded.alg
-PmaxHeapSize=5G

Error

> Task :lucene:benchmark:compileJava FAILED
/home/intel/Documents/lucene/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/CreateIndexTask.java:30:
error: package org.apache.lucene.codecs.simpletext does not exist
import org.apache.lucene.codecs.simpletext.SimpleTextCodec;
^
/home/intel/Documents/lucene/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/CreateIndexTask.java:200:
error: cannot find symbol
iwConf.setCodec(new SimpleTextCodec());
^
symbol: class SimpleTextCodec
location: class CreateIndexTask
2 errors

Kindly help.

Thanks,
Praveen Nishchal
RE: Could not run benchmark for custom codec in Lucene 9 [ In reply to ]
Hi,



First; you should use “./gradlew :lucene:benchmark:run” from home directory, gradle is using the operating system version already installed on your computer, which might break.



On the other hand: What did you change except task files? Because what fails here is the compilation and this one is always the same, no matter which benchmark you like to run or how you modify the task files.



Uwe



-----

Uwe Schindler

Achterdiek 19, D-28357 Bremen

<https://www.thetaphi.de> https://www.thetaphi.de

eMail: uwe@thetaphi.de



From: praveen nishchal <praveen.nishchal@gmail.com>
Sent: Tuesday, June 29, 2021 7:57 PM
To: dev@lucene.apache.org
Subject: Could not run benchmark for custom codec in Lucene 9



Hi Members,

We are able to build and run benchmark using various algo file but when we want to test custom codec like SimpleTextCodec, we are encountering issue as mentioned below:

Command ran

gradle run -PtaskAlg=conf/indexing-flush-by-RAM-multithreaded.alg -PmaxHeapSize=5G

Error

> Task :lucene:benchmark:compileJava FAILED
/home/intel/Documents/lucene/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/CreateIndexTask.java:30: error: package org.apache.lucene.codecs.simpletext does not exist
import org.apache.lucene.codecs.simpletext.SimpleTextCodec;
^
/home/intel/Documents/lucene/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/CreateIndexTask.java:200: error: cannot find symbol
iwConf.setCodec(new SimpleTextCodec());
^
symbol: class SimpleTextCodec
location: class CreateIndexTask
2 errors



Kindly help.



Thanks,

Praveen Nishchal
Re: Could not run benchmark for custom codec in Lucene 9 [ In reply to ]
Hi Uwe Schindler,

./gradlew assemble works fine until i change CreateIndexTask.java for
testing custom codec - SimpleTextCodec

Kindly ignore previous message on performance. It's more of package not
found issue

*Command run*

./gradlew assemble

*Error *

CreateIndexTask.java:31: error: package org.apache.lucene.codecs.simpletext
does not exist
import org.apache.lucene.codecs.simpletext.SimpleTextCodec;
^
1 error


FAILURE: Build failed with an exception.

Lines of code changed in CreateIndexTask.java in Benchmark are as follows:

Line no # 31 - import org.apache.lucene.codecs.simpletext.SimpleTextCodec;
Line no # 200 - iwConf.setCodec(new SimpleTextCodec());

On Wed, Jun 30, 2021 at 1:55 PM praveen nishchal <praveen.nishchal@gmail.com>
wrote:

>
>
> Hi Uwe Schindler,
>
> ./gradlew assemble works fine until i change CreateIndexTask.java for
> testing custom codec - SimpleTextCodec
>
> Kindly ignore previous message on performance. It's more of package not
> found issue
>
>
>
>> Hi,
>>
>>
>>
>> First; you should use “./gradlew :lucene:benchmark:run” from home
>> directory, gradle is using the operating system version already installed
>> on your computer, which might break.
>>
>>
>>
>> On the other hand: What did you change except task files? Because what
>> fails here is the compilation and this one is always the same, no matter
>> which benchmark you like to run or how you modify the task files.
>>
>>
>>
>> Uwe
>>
>>
>>
>> -----
>>
>> Uwe Schindler
>>
>> Achterdiek 19, D-28357 Bremen
>>
>> https://www.thetaphi.de
>>
>> eMail: uwe@thetaphi.de
>>
>>
>>
>> *From:* praveen nishchal <praveen.nishchal@gmail.com>
>> *Sent:* Tuesday, June 29, 2021 7:57 PM
>> *To:* dev@lucene.apache.org
>> *Subject:* Could not run benchmark for custom codec in Lucene 9
>>
>>
>>
>> Hi Members,
>>
>> We are able to build and run benchmark using various algo file but when
>> we want to test custom codec like SimpleTextCodec, we are encountering
>> issue as mentioned below:
>>
>> Command ran
>>
>> gradle run -PtaskAlg=conf/indexing-flush-by-RAM-multithreaded.alg
>> -PmaxHeapSize=5G
>>
>> Error
>>
>> > Task :lucene:benchmark:compileJava FAILED
>> /home/intel/Documents/lucene/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/CreateIndexTask.java:30:
>> error: package org.apache.lucene.codecs.simpletext does not exist
>> import org.apache.lucene.codecs.simpletext.SimpleTextCodec;
>> ^
>> /home/intel/Documents/lucene/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/CreateIndexTask.java:200:
>> error: cannot find symbol
>> iwConf.setCodec(new SimpleTextCodec());
>> ^
>> symbol: class SimpleTextCodec
>> location: class CreateIndexTask
>> 2 errors
>>
>>
>>
>> Kindly help.
>>
>>
>>
>> Thanks,
>>
>> Praveen Nishchal
>>
>