The discrete dipoles approximation method is exploited to study light scattering near a cylindrical cavity, made in an absorbing plasmonic surrounding medium. To the best of our knowledge, this is the first use of the method for the metal background. Our two-dimensional numerical simulation of the local fields demonstrates a good performance of the approach. Its high accuracy is proven by comparison with the known analytical solution.