SCOTTSDALE, Ariz. — Rockies all-star second baseman DJ LeMahieu didn’t want to deal with salary arbitration. Now he doesn’t have to worry about it for two years.

The Rockies and LeMahieu avoided an arbitration hearing Wednesday, agreeing to a two-year deal worth $7.8 million, a major-league source confirmed. LeMahieu will receive $3 million in 2016 and $4.8 in 2017.

LeMahieu was originally asking for a one-year deal worth $3.3 million, while the Rockies countered with $2.8 million.

LeMahieu, who won a Gold Glove in 2014, was a first-time all-star last season, setting career highs in games (150), at-bats (564), hits (179), home runs (six), RBIs (61), walks (50) and stolen bases (23).

Patrick Saunders: psaunders@denverpost.com or @psaundersdp