According to discussions in this thread influxdb2 only works with OH3.
then you anyway need to migrate to OH3.