Hey there!
The definition of these two properties are as follows:
hive.exec.compress.output - Set this property to true if you want the final output that will be stored on HDFS to be compressed.
mapreduce.output.fileoutputformat.compress- Set this property to true if you want to compress the MapReduce job output. The default value is false.
So, the difference between these two is that the first one will compress any output that will be stored on HDFS and the second one will compress only the MapReduce Job output.