[SPARK-2434]: Warning messages added