<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question An unexpected error occured while sharing drive in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/An-unexpected-error-occured-while-sharing-drive/m-p/285553#M211902</link>
    <description>&lt;P&gt;I tried to install HortonWorks HDP Sandbox with Docker on a Windows10 Machine, as described here: &lt;A href="https://www.cloudera.com/tutorials/sandbox-deployment-and-install-guide/3.html" target="_blank" rel="noopener"&gt;https://www.cloudera.com/tutorials/sandbox-deployment-and-install-guide/3.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I executed the command&lt;BR /&gt;&lt;STRONG&gt;sh docker-deploy-hdp30.sh&lt;/STRONG&gt;&lt;BR /&gt;in a Git Bash console window, having admin rights. It seems that pulling the image worked but I got following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: An unexpected error occurred while sharing drive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=&amp;gt;How can I resolve that? Does the docker image expect that a certain drive exists?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some more output from the console:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;4b9047c5fbbb: Download complete&lt;BR /&gt;951bdea65c93: Pull complete&lt;BR /&gt;4b9047c5fbbb: Pull complete&lt;BR /&gt;773156407aae: Pull complete&lt;BR /&gt;d8524176841d: Pull complete&lt;BR /&gt;Digest: sha256:42e4cfbcbb76af07e5d8f47a183a0d4105e65a1e7ef39fe37ab746e8b2523e9e&lt;BR /&gt;Status: Downloaded newer image for hortonworks/sandbox-proxy:1.0&lt;BR /&gt;docker.io/hortonworks/sandbox-proxy:1.0&lt;BR /&gt;+ '[' hdp == hdf ']'&lt;BR /&gt;+ '[' hdp == hdp ']'&lt;BR /&gt;+ hostname=sandbox-hdp.hortonworks.com&lt;BR /&gt;++ docker images&lt;BR /&gt;++ grep hortonworks/sandbox-hdp&lt;BR /&gt;++ awk '{print $2}'&lt;BR /&gt;+ version=3.0.1&lt;BR /&gt;+ docker network create cda&lt;BR /&gt;6a49701140839d32eebaa5b10bce2ca3e830f564e3f3049aea37248fbe971875&lt;BR /&gt;+ docker run --privileged --name sandbox-hdp -h sandbox-hdp.hortonworks.com --network=cda --network-alias=sandbox-hdp.hortonworks.com -d hortonworks/sandbox-hdp:3.0.1&lt;BR /&gt;94baa202b35c25cdf82219fdd396b1bffac4c95fc079c049111e695da4c6224e&lt;BR /&gt;+ echo ' Remove existing postgres run files. Please wait'&lt;BR /&gt;Remove existing postgres run files. Please wait&lt;BR /&gt;+ sleep 2&lt;BR /&gt;+ docker exec -t sandbox-hdp sh -c 'rm -rf /var/run/postgresql/*; systemctl restart postgresql-9.6.service;'&lt;BR /&gt;+ sed s/sandbox-hdp-security/sandbox-hdp/g assets/generate-proxy-deploy-script.sh&lt;BR /&gt;+ mv -f assets/generate-proxy-deploy-script.sh.new assets/generate-proxy-deploy-script.sh&lt;BR /&gt;+ chmod +x assets/generate-proxy-deploy-script.sh&lt;BR /&gt;+ assets/generate-proxy-deploy-script.sh&lt;BR /&gt;+ uname&lt;BR /&gt;+ grep MINGW&lt;BR /&gt;MINGW64_NT-10.0-17763&lt;BR /&gt;+ sed -i -e 's/\( \/[a-z]\)/\U\1:/g' sandbox/proxy/proxy-deploy.sh&lt;BR /&gt;+ chmod +x sandbox/proxy/proxy-deploy.sh&lt;BR /&gt;+ sandbox/proxy/proxy-deploy.sh&lt;BR /&gt;C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: An unexpected error occurred while sharing drive.&lt;BR /&gt;See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2019 13:47:47 GMT</pubDate>
    <dc:creator>mata</dc:creator>
    <dc:date>2019-12-13T13:47:47Z</dc:date>
    <item>
      <title>An unexpected error occured while sharing drive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/An-unexpected-error-occured-while-sharing-drive/m-p/285553#M211902</link>
      <description>&lt;P&gt;I tried to install HortonWorks HDP Sandbox with Docker on a Windows10 Machine, as described here: &lt;A href="https://www.cloudera.com/tutorials/sandbox-deployment-and-install-guide/3.html" target="_blank" rel="noopener"&gt;https://www.cloudera.com/tutorials/sandbox-deployment-and-install-guide/3.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I executed the command&lt;BR /&gt;&lt;STRONG&gt;sh docker-deploy-hdp30.sh&lt;/STRONG&gt;&lt;BR /&gt;in a Git Bash console window, having admin rights. It seems that pulling the image worked but I got following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: An unexpected error occurred while sharing drive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=&amp;gt;How can I resolve that? Does the docker image expect that a certain drive exists?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some more output from the console:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;4b9047c5fbbb: Download complete&lt;BR /&gt;951bdea65c93: Pull complete&lt;BR /&gt;4b9047c5fbbb: Pull complete&lt;BR /&gt;773156407aae: Pull complete&lt;BR /&gt;d8524176841d: Pull complete&lt;BR /&gt;Digest: sha256:42e4cfbcbb76af07e5d8f47a183a0d4105e65a1e7ef39fe37ab746e8b2523e9e&lt;BR /&gt;Status: Downloaded newer image for hortonworks/sandbox-proxy:1.0&lt;BR /&gt;docker.io/hortonworks/sandbox-proxy:1.0&lt;BR /&gt;+ '[' hdp == hdf ']'&lt;BR /&gt;+ '[' hdp == hdp ']'&lt;BR /&gt;+ hostname=sandbox-hdp.hortonworks.com&lt;BR /&gt;++ docker images&lt;BR /&gt;++ grep hortonworks/sandbox-hdp&lt;BR /&gt;++ awk '{print $2}'&lt;BR /&gt;+ version=3.0.1&lt;BR /&gt;+ docker network create cda&lt;BR /&gt;6a49701140839d32eebaa5b10bce2ca3e830f564e3f3049aea37248fbe971875&lt;BR /&gt;+ docker run --privileged --name sandbox-hdp -h sandbox-hdp.hortonworks.com --network=cda --network-alias=sandbox-hdp.hortonworks.com -d hortonworks/sandbox-hdp:3.0.1&lt;BR /&gt;94baa202b35c25cdf82219fdd396b1bffac4c95fc079c049111e695da4c6224e&lt;BR /&gt;+ echo ' Remove existing postgres run files. Please wait'&lt;BR /&gt;Remove existing postgres run files. Please wait&lt;BR /&gt;+ sleep 2&lt;BR /&gt;+ docker exec -t sandbox-hdp sh -c 'rm -rf /var/run/postgresql/*; systemctl restart postgresql-9.6.service;'&lt;BR /&gt;+ sed s/sandbox-hdp-security/sandbox-hdp/g assets/generate-proxy-deploy-script.sh&lt;BR /&gt;+ mv -f assets/generate-proxy-deploy-script.sh.new assets/generate-proxy-deploy-script.sh&lt;BR /&gt;+ chmod +x assets/generate-proxy-deploy-script.sh&lt;BR /&gt;+ assets/generate-proxy-deploy-script.sh&lt;BR /&gt;+ uname&lt;BR /&gt;+ grep MINGW&lt;BR /&gt;MINGW64_NT-10.0-17763&lt;BR /&gt;+ sed -i -e 's/\( \/[a-z]\)/\U\1:/g' sandbox/proxy/proxy-deploy.sh&lt;BR /&gt;+ chmod +x sandbox/proxy/proxy-deploy.sh&lt;BR /&gt;+ sandbox/proxy/proxy-deploy.sh&lt;BR /&gt;C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: An unexpected error occurred while sharing drive.&lt;BR /&gt;See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 13:47:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/An-unexpected-error-occured-while-sharing-drive/m-p/285553#M211902</guid>
      <dc:creator>mata</dc:creator>
      <dc:date>2019-12-13T13:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occured while sharing drive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/An-unexpected-error-occured-while-sharing-drive/m-p/285554#M211903</link>
      <description>&lt;P&gt;The linked install guide includes the trouble shooting info below. I did not find that info with a search engine and therefore decided to share it here. Please use text instead of images for the examples and trouble shooting in future.&lt;/P&gt;&lt;H3&gt;&lt;A href="https://www.cloudera.com/tutorials/sandbox-deployment-and-install-guide/3.html#drive-not-shared" target="_blank" rel="noopener"&gt;Drive not shared&lt;/A&gt;&lt;/H3&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/a93c626d86a5d15bc0931041934776761388ce21/68747470733a2f2f7777772e636c6f75646572612e636f6d2f636f6e74656e742f64616d2f7777772f6d61726b6574696e672f7475746f7269616c732f73616e64626f782d6465706c6f796d656e742d616e642d696e7374616c6c2d67756964652f6173736574732f646f636b65722d64726976652d6e6f742d7368617265642e6a7067" border="0" alt="docker-drive-not-shared" /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Docker needs &lt;STRONG&gt;write&lt;/STRONG&gt; access to the drive where the &lt;STRONG&gt;docker-deploy-.sh&lt;/STRONG&gt; is executed.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The easiest solution is to execute script from &lt;STRONG&gt;Downloads&lt;/STRONG&gt; folder.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Otherwise, go to &lt;STRONG&gt;Docker Preferences/Settings&lt;/STRONG&gt; -&amp;gt; &lt;STRONG&gt;File Sharing/Shared Drives&lt;/STRONG&gt; -&amp;gt; &lt;STRONG&gt;Add/Select&lt;/STRONG&gt; path/drive where deploy-scripts are located and try again.I&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 13 Dec 2019 13:14:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/An-unexpected-error-occured-while-sharing-drive/m-p/285554#M211903</guid>
      <dc:creator>mata</dc:creator>
      <dc:date>2019-12-13T13:14:04Z</dc:date>
    </item>
  </channel>
</rss>

