In case the core you address is not your default core, your request is lacking the core's name in the URL. You should request should be like this
127.0.0.1:8983/solr//dataimport?command=full-import
There you need to replace the with the actual name of your core, as configured in your solr.xml.