I used following commands on Magento EE 2.1.7 to install sample data.
OS - Ubuntu 14.04
cd <Magento_root_directory>
git clone https://github.com/magento/magento2-sample-data.git ./sample-data
php -f ./sample-data/dev/tools/build-sample-data.php -- --ce-source="."
All symlinks you can see at files:
<Magento_root_directory>/sample-data/dev/tools/exclude.log
After that, When I ran php bin/magento setup:upgrade, I get
[ReflectionException]
Class Magento\Framework\Serialize\Serializer\Json does not exist