Question: If a kakfa topic has more than one partition , in java , those many consumer instances/threads would be instantiated at consumer side.

How it could be handled in spark-streaming consumer side ? I dont find much information regarding the same. Any sample for the same i.e. invoking multiple consumers at spark-streaming-consumer of a topic.

Any design suggestion/examples around would be highly thankful.

Regards,
Shyam

Answer: 
You need to update calligraphy version and change code according to new version

You need to change repository in dependencies from

```
implementation "uk.co.chrisjenx:calligraphy:$caligraphyVersion"

```

to

```
implementation 'io.github.inflationx:calligraphy3:3.1.1'
implementation 'io.github.inflationx:viewpump:2.0.3'

```

You need to change usage of import from

```
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;

```

to

```
import io.github.inflationx.calligraphy3.CalligraphyConfig;

```

Calligraphy config from

```
CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
               .setDefaultFontPath(getResources().getString(R.string.bariol))
               .setFontAttrId(R.attr.fontPath)
                .build())) 
                .build());

```

to

```
ViewPump.init(ViewPump.builder()
            .addInterceptor(new CalligraphyInterceptor(
                    new CalligraphyConfig.Builder()

            .setDefaultFontPath(getResources().getString(R.string.bariol))
                            .setFontAttrId(R.attr.fontPath)
                            .build()))
            .build());

```

I used font bariol you can change it to yours.

& newbase to

```
super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));

```
Migrate from [chrisjenx/Calligraphy](https://github.com/chrisjenx/Calligraphy)
to [InflationX/Calligraphy](https://github.com/InflationX/Calligraphy)
and update `Calligraphy` to newest version